File: misc.txt

package info (click to toggle)
highlight.js 10.7.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,332 kB
  • sloc: javascript: 41,059; makefile: 157; python: 29; sh: 20
file content (35 lines) | stat: -rw-r--r-- 614 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using namespace System.Text
using module CardGames

function Get-PowerShellProcess { Get-Process PowerShell }
Function Add-Numbers($one, $two) {
    $one + $two
}

enum MediaTypes {
    unknown
    music = 10
    mp3
    aac
    ogg = 15
}

"def" -notin "abc", "def"
"Sunday" -notmatch "rain"
"Good Dog" -match "Dog"
2 -eq 2
"abc" -ne "def"

$hash = @{
    SomeKey = 'SomeValue'
    SomeKey2 = 'SomeValue2'
    SomeKey3 = 'SomeValue3'
}

$client = New-Object System.Net.WebClient

[System.Environment]::Commandline

$notepad = Get-Process notepad
$notepad.Kill()
'this is rocket science'.Replace('rocket', 'rock')