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
| #! /usr/bin/python2 | |
| import re | |
| import sys | |
| import urllib | |
| import urllib2 | |
| from xml.dom.minidom import parseString | |
| def printRtmpdumpCommand(rtmpUrl, app, streamId, channel): |
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
| " Move All go Functions to the end of the file | |
| g/func/-1,/^}$/m$ |
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
| #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
| #Warn ; Recommended for catching common errors. | |
| SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
| SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
| #IfWinNotActive, Path of Exile | |
| MButton::ScrollLock | |
| #IfWinActive, Path of Exile | |
| XButton1::ScrollLock |
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
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "log" | |
| "os" | |
| "path/filepath" | |
| "strings" | |
| "time" |
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
| package main | |
| import ( | |
| "fmt" | |
| "strings" | |
| ) | |
| type stringMonad func(string) (string, error) | |
| func removeString(s string) stringMonad { |
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
| #!/bin/bash | |
| # find all videos in $PWD/* | |
| # randomize them | |
| # pick 5 of them | |
| # add the vlc quit signal | |
| # vlc | |
| # shut her down | |
| find -name "*.mkv" | \ |
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
| [Desktop Entry] | |
| Name=broodwar | |
| Exec=env WINEPREFIX="/home/ghthor/.scbw.wine32" WINEARCH=win32 PULSE_LATENCY_MSEC=60 wine /home/ghthor/.scbw.wine32/dosdevices/c:/sc/StarCraft/StarCraft.exe | |
| Type=Application | |
| StartupNotify=true | |
| Path=/home/ghthor/.scbw.wine32/dosdevices/c:/sc/StarCraft | |
| Icon=/home/ghthor/.scbw.wine32/dosdevices/c:/sc/StarCraft/scbw.png | |
| Categories=Game; |
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
| // Go solution to https://projecteuler.net/problem=40 | |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "strconv" | |
| ) | |
| func main() { |
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
| // | |
| // NSURLComponents+URLQueryEncoding.h | |
| // | |
| // Created by Willa Drengwitz on 3/8/16. | |
| // Copyright © 2016 Willa Drengwitz. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> | |
| @interface NSURLComponents (URLQueryEncoding) |
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
| import Foundation | |
| func toString(obj: AnyObject) -> String? { | |
| return obj as? String | |
| } | |
| func toJSON(obj: AnyObject) -> [String: AnyObject]? { | |
| return obj as? [String: AnyObject] | |
| } |