See docs @ https://docs.github.com/en/rest/gists/gists?apiVersion=2022-11-28#create-a-gist
content=$(awk '{gsub(/\\/, "\\\\"); gsub(/"/, "\\\""); printf "%s\\n", $0}' /path/to/your/file | sed ':a;N;$!ba;s/\n/\\n/g')See docs @ https://docs.github.com/en/rest/gists/gists?apiVersion=2022-11-28#create-a-gist
content=$(awk '{gsub(/\\/, "\\\\"); gsub(/"/, "\\\""); printf "%s\\n", $0}' /path/to/your/file | sed ':a;N;$!ba;s/\n/\\n/g')# Navigate to your existing repository
cd /path/to/existing/repo
# Add the new repository as a remote
git remote add new-repo /path/to/new/repo
# Fetch the branch from the new repository
git fetch new-repo branch-namefor x in *.webp; do dwebp {} -o ${x%.*}.png ::: $x; doneconvert '*.png' -background white -alpha remove -alpha off -set filename:fn '%[basename]-white' '%[filename:fn].png'Separate image into discrete channels, colored as channel
| // Place your key bindings in this file to override the defaults | |
| [ | |
| { | |
| "key": "ctrl+`", | |
| "command": "workbench.action.terminal.focus", | |
| "when": "!terminalFocus" | |
| }, | |
| { | |
| "key": "ctrl+tab", | |
| "command": "workbench.action.terminal.focusNext", |
| // Create photomosaics from a source image and a directory of tile images. | |
| // by Greg Borenstein, January 2013 | |
| // Read more here: http://www.urbanhonking.com/ideasfordozens/2013/01/14/making-photomosaics-in-processing/index.html | |
| // NOTE: based on luminance (white/black) only, NOT HUE | |
| // see inline comments for more details | |
| // ------------------------------------- | |
Some of these DO NOT WORK and I'm not sure why they are here ugh
ffmpeg -r 15 -f image2 -s 500x500 -pattern_type glob -i '*.png' -vcodec libx264 -crf 17 -pix_fmt yuv420p 'combined.mp4'
ffmpeg -r 3 -f image2 -pattern_type glob -i '*.png' -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" -vcodec libx264 -crf 17 -pix_fmt yuv420p 'combined.mp4'
ffmpeg -r 3 -f image2 -pattern_type glob -i '*.png' -vf scale=-2:2048 -vcodec libx264 -crf 17 -pix_fmt yuv420p 'combined.mp4'
| In recent days (the last 12-24 hours), there have been a couple of posts on a one | |
| 'Marak Squires', who goes by the tag JimBastard. He stands accused of stealing code, | |
| and being a general douchebag. Stealing code isn't good. Being a douchebag isn't | |
| acutally illegal. However, the way that the campaign against him has been carried | |
| out worries me. | |
| The post to reddit that brought this issue to attention was entitled 'Code Thief at | |
| Large: Marak Squires / JimBastard'. It can be found here: | |
| http://www.reddit.com/r/programming/comments/ebge2/code_thief_at_large_marak_squires_jimbastard/. | |
| It was a link to a github gist that can be found here: |
| rules: {"start":"P","rules":{"P":"P+P[PN]T","T":"PP"}} | |
| instructions: P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP+P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP[P+P[PN]T+P+P[PN]T[P+P[PN]TN]PPN]P+P[PN]TP+P[PN]T+P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP+P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP[P+P[PN]T+P+P[PN]T[P+P[PN]TN]PPN]P+P[PN]TP+P[PN]T[P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP+P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP[P+P[PN]T+P+P[PN]T[P+P[PN]TN]PPN]P+P[PN]TP+P[PN]TN]P+P[PN]T+P+P[PN]T[P+P[PN]TN]PPP+P[PN]T+P+P[PN]T[P+P[PN]TN]PP+P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP+P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP[P+P[PN]T+P+P[PN]T[P+P[PN]TN]PPN]P+P[PN]TP+P[PN]T+P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP+P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP[P+P[PN]T+P+P[PN]T[P+P[PN]TN]PPN]P+P[PN]TP+P[PN]T[P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP+P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP[P+P[PN]T+P+P[PN]T[P+P[PN]TN]PPN]P+P[PN]TP+P[PN]TN]P+P[PN]T+P+P[PN]T[P+P[PN]TN]PPP+P[PN]T+P+P[PN]T[P+P[PN]TN]PP[P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP+P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP[P+P[PN]T+P+P[PN]T[P+P[PN]TN]PPN]P+P[PN]TP+P[PN]T+P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP+P+P[PN]T+P+P[PN]T[P+P[ |
| 'use strict'; | |
| // https://gist.github.com/VinGarcia/ba278b9460500dad1f50 | |
| // List all files in a directory in Node.js recursively in a synchronous fashion | |
| let walkSync = function(dir, filelist) { | |
| if (dir[dir.length-1] != `/`) { dir = dir.concat(`/`); } | |
| var files = fs.readdirSync(dir); | |
| filelist = filelist || []; |