Check out the repo instead. The Wisdom of Quinn Now with 100% more archived PDFs.
Informative DevForum posts from everyone's favorite DTS member.
(Arranged newest to oldest)
operator infix !|| { | |
associativity right | |
precedence 100 | |
} | |
func !||<T>(left: T?, right: @auto_closure () -> T) -> T { | |
if let val = left { | |
return val | |
} | |
return right() |
import Darwin // for arc4random_uniform | |
extension SequenceType { | |
@warn_unused_result(mutable_variant="shuffleInPlace") func shuffle() -> [Generator.Element] { | |
// this is more efficient than building an array and shuffling it | |
// and it works on sequences too! | |
var ary: [Generator.Element] = [] | |
ary.reserveCapacity(underestimateCount()) | |
for var x in self { | |
let j = Int(arc4random_uniform(UInt32(ary.count+1))) |
# to use this script you need the latest fish version (2.1.x) | |
begin | |
########## USER CONFIG ########## | |
# enable or disable the different parts of promptline with yes or no | |
set show_only_left_prompt no | |
set show_hostname no | |
set show_virtual_env yes | |
set show_username yes | |
set show_current_working_directory yes | |
set show_git_branch yes |
Moved to a repo: https://github.com/Ahruman/ClassCrawler |
ffmpeg -re -i http://url.com/playlist.m3u8 -c copy -bsf:a aac_adtstoasc output.mp4 |
Check out the repo instead. The Wisdom of Quinn Now with 100% more archived PDFs.
Informative DevForum posts from everyone's favorite DTS member.
(Arranged newest to oldest)
#/bin/sh | |
INFO=$( echo $PWD )/MyApp-Info | |
TAG=$( git describe --tags `git rev-list --tags --max-count=1` ) | |
COMMIT= | |
GITPATH=/usr/bin:/usr/local/bin:/usr/local/git/bin | |
PATH=$PATH:$GITPATH; export PATH | |
if [ -z $( which git ) ]; then | |
echo "Unable to find git binary in \$GITPATH" |
#!/usr/bin/env -S perl -p | |
tr/rlRL/wwWW/; s/([nN])([aeiou])/\1y\2/g; s/(N)([AEIOU])/\1Y\2/g; s/ove/uv/g; | |
s/\!+/" ".("(・`ω´・)",";;w;;","owo","UwU",">w<","^w^")[rand(6)]." "/eg; |
(placeholder to set the gist name) |