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 <ncurses.h> | |
int main(int argc, char *argv[]) { | |
initscr(); | |
// Create window with max rows, and cols | |
WINDOW *win; | |
win = newwin(0, 0, 0, 0); // rows, cols, x, y | |
wrefresh(win); |
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
%:octosocial ⵗ sudo npm install appjs | |
npm http GET https://registry.npmjs.org/appjs | |
npm http 304 https://registry.npmjs.org/appjs | |
npm http GET https://registry.npmjs.org/mime | |
npm http 304 https://registry.npmjs.org/mime | |
> appjs@0.0.19 postinstall /home/larz/Desktop/node_modules/appjs | |
> node cli/postinstall.js | |
Installing appjs-linux-x64 pacakge... |
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
package main | |
import ( | |
"fmt" | |
"os" | |
) | |
func main() { | |
path := "/home/larz/Desktop/wut.txt" | |
// V This is the bugger I was having problems with |
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 | |
shopt -e nocaseglob | |
set -e | |
clear | |
# | |
# Variables | |
# |
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 fs = require('fs') | |
, Path = require('path'); | |
// Merge two objects together into the first one | |
function merge (object, otherObject) { | |
var obj = object || {} | |
, otherObj = otherObject || {} | |
, key, value; |
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
# Git does some automagical stuff with PATH, that makes it so if any commands are prepended | |
# with "git-" it adds it to the main git command. So once installed you can simply call | |
# share like `git share` | |
PREFIX=/usr/local | |
install: | |
@cp -r git-share ${PREFIX}/bin |
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 | |
// Documentation path should be the only given argument | |
var docsPath = process.argv.slice(2)[0]; | |
if (!docsPath) { | |
console.log("Please provide a path to generate docs from."); | |
process.exit(1); | |
} | |
var path = require('path') |
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/bash | |
PREFIX="/usr/local" | |
rm -f $PREFIX/bin/node | |
rm -f $PREFIX/bin/nodejs | |
rm -f $PREFIX/bin/node-gyp | |
rm -f $PREFIX/bin/nodejs-waf | |
rm -f $PREFIX/bin/node-waf | |
rm -f $PREFIX/bin/npm |
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
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" |
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
var repl = require('repl') | |
, rl; | |
rl = repl.start({ | |
prompt: '>>> ' | |
, input: process.stdin | |
, output: process.stdout | |
}); | |
rl.on('close', function () { |