Skip to content

Instantly share code, notes, and snippets.

View larzconwell's full-sized avatar

Larz Conwell larzconwell

View GitHub Profile
#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);
%: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...
package main
import (
"fmt"
"os"
)
func main() {
path := "/home/larz/Desktop/wut.txt"
// V This is the bugger I was having problems with
#!/usr/bin/env bash
shopt -e nocaseglob
set -e
clear
#
# Variables
#
#!/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;
# 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
@larzconwell
larzconwell / gist:3902950
Created October 17, 2012 00:18
Don't use this
#!/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')
#!/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
package main
import (
"bytes"
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"net/http"
var repl = require('repl')
, rl;
rl = repl.start({
prompt: '>>> '
, input: process.stdin
, output: process.stdout
});
rl.on('close', function () {