wherein we hang out and talk about npm stuff and occasionally mock ruby
- npm catches missing node-waf and/or node-waf deps like python - charlie
<html> | |
<head> | |
<script src="/socket.io/socket.io.js"></script> | |
</head> | |
<body> | |
<div id="output"></div> | |
<script> | |
function write (msg) { | |
var p = document.createElement('p'); | |
p.innerHTML = 'LOG: ' + msg; |
How to add cmd-left-arrow and cmd-right-arrow (without shift) key bindings to the mac os x Terminal | |
app if the Lion install removed this bindings from your system. | |
1) Open "System Preferences". | |
2) Go to "Keyboard". | |
3) Select the "Keyboard Shortcuts" tab. | |
4) Select "Application Shortcuts" from the list of items in the left. | |
5) Press "+" to add a new shurtcut. | |
6) As "Application" select "Terminal", as "Menu Title" use: "Select Next Tab". For the "Keyboard Shortcut" field just select the field and press cmd-right-arrow. | |
7) Repeat again from step 5, using "Select Previous Tab" as Menu Title and pressing cmd-left-arrow as keyboard shortcut. |
How to list the content type of all files in a Cloudfiles container.
dw-is-my-hero.js
to that folderdw-is-my-hero.js
and change USERNAME
and API_KEY
to your username and API keynode dw-is-my-hero.js CONTAINER_NAME
// right navigation button | |
var btn = Ti.UI.createButton({ | |
title:'button' | |
}); | |
// window | |
var win = Ti.UI.createWindow({ | |
rightNavButton:btn, | |
backgroundColor:'blue' | |
}); |
#!/bin/bash | |
# Author: Chmouel Boudjnah <chmouel.boudjnah@rackspace.co.uk> | |
# Not officially supported by Rackspace only as a best effort basis :) | |
# Define yes to make it to copy to url to clipboard (via a shortened url | |
# service) You need to have the software xclip installed in your system. | |
COPY_URL_TO_CLIPBOARD=yes | |
# Containers to ignore in the list | |
CONTAINERS_TO_IGNORE=".CDN_ACCESS_LOGS" |
npm config set registry http://registry.npmjs.org/ | |
npm config set proxy http://http-proxy.com:80 | |
npm install -d |
module.exports = tree | |
tree.sync = treeSync | |
var fs = require("fs") | |
, path = require("path") | |
function tree (root, cb) { | |
fs.lstat(root, function (er, s) { | |
if (er) return cb(er) | |
s.name = root |
/* | |
npm install ws request crc-32 | |
*/ | |
const WebSocket = require('ws') | |
const request = require('request') | |
const CRC = require('crc-32') | |
const LIMIT_CHAN = 250 |
/* | |
A script to generate a Google BigQuery-complient JSON-schema from a JSON object. | |
Make sure the JSON object is complete before generating, null values will be skipped. | |
References: | |
https://cloud.google.com/bigquery/docs/data | |
https://cloud.google.com/bigquery/docs/personsDataSchema.json | |
https://gist.github.com/igrigorik/83334277835625916cd6 | |
... and a couple of visits to StackOverflow |