Skip to content

Instantly share code, notes, and snippets.

View mollyporph's full-sized avatar

Otto Remse mollyporph

  • Forefront Consulting
  • Sweden
View GitHub Profile
MATCH (selectedSkill:Skill)-[:prerequisite]->(requiredSkills:Skill)
WHERE selectedSkill.ID == "someId"
RETURN (count(requiredSkills) - count(requiredSkills.purchased) == 0)
using System;
using System.Collections.ObjectModel;
using System.Windows;
namespace datagridTest
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
git config --global alias.lg "log --format='%C(Cyan)%s%Creset %C(dim white)(%ar)%Creset%n%w(72,4,4)%b'"
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"
$creds = Get-Credential
$dhurl = "https://crew.dreamhack.se/team/"
$teams = "Activity",
"Admin",
"Construction",
"Cosplay",
"Coverage",
"Crew Services",
"DHGAME",
"DreamArena Security",
$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}
function Rename-TVEpisodes{
[CmdletBinding(SupportsShouldProcess)]
Param(
[string]$Name,
[int]$Season = 1)
process{
$seasonFolders = dir -Directory
$seasonFolders | %{
$seasonFolderName = $PSItem.FullName
$seasonStr = "$($Season)".PadLeft(2,"0");
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
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:
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."
}