This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MATCH (selectedSkill:Skill)-[:prerequisite]->(requiredSkills:Skill) | |
| WHERE selectedSkill.ID == "someId" | |
| RETURN (count(requiredSkills) - count(requiredSkills.purchased) == 0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.ObjectModel; | |
| using System.Windows; | |
| namespace datagridTest | |
| { | |
| /// <summary> | |
| /// Interaction logic for MainWindow.xaml | |
| /// </summary> | |
| public partial class MainWindow : Window |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git config --global alias.lg "log --format='%C(Cyan)%s%Creset %C(dim white)(%ar)%Creset%n%w(72,4,4)%b'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git config --global --replace-all alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset%n%w(72,4,4)%b' --abbrev-commit --date=relative" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $creds = Get-Credential | |
| $dhurl = "https://crew.dreamhack.se/team/" | |
| $teams = "Activity", | |
| "Admin", | |
| "Construction", | |
| "Cosplay", | |
| "Coverage", | |
| "Crew Services", | |
| "DHGAME", | |
| "DreamArena Security", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $contentArray = [byte]98,[byte]111,[byte]111,[byte]98,[byte]105,[byte]101,[byte]115 | |
| $uriArray = [Byte]104,[Byte]116,[Byte]116,[Byte]112,[Byte]58,[Byte]47,[Byte]47,[Byte]105,[Byte]109,[Byte]103,[Byte]117,[Byte]114,[Byte]46,[Byte]99,[Byte]111,[Byte]109 | |
| $enc = [System.Text.Encoding]::UTF8 | |
| $cstr = $enc.GetString($contentArray) | |
| $ustr = $enc.GetString($uriArray) | |
| (iwr "$($ustr)/r/$($cstr)" -UseBasicParsing).Links.href | | |
| ? {$PSItem -like "/r/$($cstr)/*" -and $PSItem -notlike "/r/$($cstr)/new" -and $PSItem -notlike "/r/$($cstr)/top"} | % {"$($ustr)$($PSItem)"} | % {start $PSItem} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Rename-TVEpisodes{ | |
| [CmdletBinding(SupportsShouldProcess)] | |
| Param( | |
| [string]$Name, | |
| [int]$Season = 1) | |
| process{ | |
| $seasonFolders = dir -Directory | |
| $seasonFolders | %{ | |
| $seasonFolderName = $PSItem.FullName | |
| $seasonStr = "$($Season)".PadLeft(2,"0"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type Vechicle = | |
| | Animal of LegCount :int * BaseSpeed : int | |
| | Car of Automatic : bool * BaseSpeed : int | |
| let Speed vechicle = | |
| let GetCarSpeed automatic baseSpeed = | |
| if automatic then | |
| baseSpeed*2 | |
| else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Shark (Kombustor) v0.9.2 | |
| (C)2013 MSI - www.msi.com | |
| ---------------------------------------- | |
| - Elapsed time: 00:59:00 | |
| - GL memory - total:8192MB, usage:662MB | |
| GPU 1 - NVIDIA GeForce GTX 980 | |
| - GPU temp: 45.0°C (min:45.0°C - max:45.0°C) | |
| - Fan speed: 54.0% / 2269.0 RPM | |
| - # Pstates: 4 | |
| - Current Pstate: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Function Get-FacebookVideo | |
| { | |
| $text = Get-Clipboard | |
| $res = [Regex]::Match($text,"https:\/\/www.facebook.com\/\w+\/videos\/\d+\/") | |
| if($res.Success) | |
| { | |
| $val = $res.Groups[0].Value | |
| $val | clip.exe | |
| Write-Host "Found $val , it has been copied to your clipboard." | |
| } |
OlderNewer