This file contains 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
(loop for line = (read-line *terminal-io* nil :eof) | |
until (eq line :eof) | |
do (write-line line)) |
This file contains 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
(setq counter 0) | |
(loop for e in *args* collect | |
(progn | |
(setq counter (+ counter 1)) | |
(write-line (concatenate 'string "argument #" (write-to-string counter) ": " e)) | |
)) |
This file contains 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 { CanvasContext } from './CanvasContext'; | |
import { Sprite } from './Sprite'; | |
import { Sprites } from './GameSprites/Factory'; | |
var context = new CanvasContext(document.getElementById('game')); | |
var sprites = [ | |
new Sprite(100, 100,'assets/spritesheet.png', 24, 24, 0, 376, 16), |
This file contains 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
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <boost/algorithm/string/split.hpp> | |
#include <boost/algorithm/string/classification.hpp> | |
int main() { | |
std::string result; | |
std::string str01 = "this,is,a,list,of,words"; |
This file contains 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
#include <iostream> | |
#include <string> | |
#include <boost/algorithm/string/trim.hpp> | |
#include <boost/algorithm/string/trim_all.hpp> | |
int main() { | |
std::string result; | |
std::string str01 = " this is a string with something to trim "; |
This file contains 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
(evil-leader/set-key "oo" 'open-org-dir) | |
(evil-leader/set-key "oa" 'my-org-archive-done-tasks) | |
(evil-leader/set-key "og" 'gtd) | |
(evil-leader/set-key "oj" 'journal) | |
(evil-leader/set-key "ot" 'org-capture) | |
(evil-leader/set-key "on" 'notes) | |
(evil-leader/set-key "oG" 'groceries) | |
(evil-leader/set-key "oi" 'gtd-inbox) | |
(evil-leader/set-key "oI" 'gtd-inbox-txt) | |
(evil-leader/set-key "oU" 'org-mobile-push) |
This file contains 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
(defun open-org-dir () | |
"Opens the org dir" | |
(interactive) | |
(find-file "~/Dropbox/org/") | |
) | |
(defun gtd-inbox () | |
"Open the gtd inbox" | |
(interactive) | |
(find-file "~/Dropbox/org/inbox.org") | |
) |
This file contains 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
#include <unistd.h> | |
#include <stdio.h> | |
int main(int argc, char **argv) | |
{ | |
FILE *read_this; | |
if (isatty(fileno(stdin))) { | |
if(argc > 1) { | |
printf("filename: %s\n", argv[1]); | |
read_this = fopen(argv[1], "r"); |
This file contains 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/zsh | |
OLDIFS=$IFS | |
IFS=$'\n' | |
for file in `find . -name '[0-9]*_[0-9a-z]*aif'`; do | |
dir=`dirname "$file"` | |
base=`basename "$file"` | |
wav_base=`echo "$base" | cut -d '-' -f1` | |
sox "$file" $dir/$wav_base.wav | |
done | |
IFS=$OLDIFS |
This file contains 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
# Description: | |
# Pump den funk | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# | |
# | |
# Commands: |