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
~/Documents/C$ ./kingofthewalls '#.....................##.;#.....................###;#########################;#########################;#########################;#########################;###################.1####;##############.....2#####;########.....############;.......##################;################........#;####...........##########;...################......;..................#######;###########.............#;..........#########......;..................##.....;...................#.....;...................##....;....................##...;.....................#...;.....................##..;......................##.;#########################;......................###' | |
W | |
~/Documents/C$ |
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 <iomanip> | |
#include <cstdint> | |
#include <cstring> | |
using namespace std; | |
typedef float fltp; | |
int main(void){ |
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
#!/usr/bin/env node | |
var mjs=require("magister.js"), | |
persist=require("node-persist"), | |
readline=require("readline"), | |
util=require("util"); | |
require("datejs"); //modifies prototypes | |
function logRuler(maxwid,s){ | |
var i,j,len; |
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
#!/usr/bin/env bash | |
if [[ "$#" != "3" ]]; then | |
echo "Give on the command line: from-language to-language word" | |
echo "Languages: NL EN DE FR ES" | |
exit | |
fi | |
text=$(w3m "http://www.mijnwoordenboek.nl/vertaal/$1/$2/$3" | cat) | |
startline=$(echo "$text" | grep -ne '^Vertalingen' | sed 's/:.*//') | |
text=$(echo "$text" | gtail -n "+$startline") |
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
set -g __fish_git_prompt_show_informative_status 1 | |
set -g __fish_git_prompt_hide_untrackedfiles 1 | |
set -g __fish_git_prompt_color_branch magenta bold | |
set -g __fish_git_prompt_showupstream "informative" | |
set -g __fish_git_prompt_char_upstream_ahead "↑" | |
set -g __fish_git_prompt_char_upstream_behind "↓" | |
set -g __fish_git_prompt_char_upstream_prefix "" | |
set -g __fish_git_prompt_char_stagedstate "●" |
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
function wrapAsync(fn) { | |
return function () { | |
var fut=new Future(); | |
var args=Array.apply(Array,arguments); | |
args.push(fut.resolver()); | |
fn.apply(this,args); | |
return fut.wait(); | |
} | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>wscat</title> | |
<script> | |
var address="",conn=null; | |
var inputhistory=[],historyidx=null,droppedCurrent=null; | |
function log(src,s){ |
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
function niceDate(d){ | |
var now=new Date(); | |
if(!d.getFullYear)d=new Date(d); | |
if(d.getDate()==now.getDate()){ | |
if(d.getHours()==now.getHours()){ | |
if(d.getMinutes()==now.getMinutes()){ | |
return now.getSeconds()-d.getSeconds()+" seconds ago"; | |
} | |
return now.getMinutes()-d.getMinutes()+" minutes ago"; | |
} |
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 <fstream> | |
#include <iomanip> | |
#include <string> | |
#include <vector> | |
#include <unordered_map> | |
#include <utility> | |
#include <tuple> | |
#include <algorithm> | |
#include <cassert> |
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
#!/usr/bin/env node | |
"use strict"; | |
var fs=require("fs"); | |
var body; | |
if(process.argv[2]=="-"){ | |
body=""; | |
var res; | |
while(true){ | |
res=fs.readSync(0,1024); | |
if(res[1]==0)break; |
OlderNewer