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 path = require('path'); | |
var webpack = require('webpack'); | |
var WebPackDevServer = require('webpack-dev-server'); | |
var uglify = new webpack.optimize.UglifyJsPlugin(); | |
var config = [ | |
{ | |
entry: ['./src/main.js'], | |
output: { |
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
body, html{ | |
margin: 0; | |
padding: 0; | |
height: 100%; | |
border: none; | |
background-color: #FFF; | |
} | |
body, html, table, form, textarea{ | |
font: 12px monospace, sans-serif; |
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
Here are some useful Git commands that I use on a regular basis. | |
git init | |
git status | |
git add . | |
git commit -a | |
touch tmp/.gitignore log/.gitignore vendor/.gitignore | |
git remote add origin (or codaset, github etc) | |
git@username:codaset.com/nameofproject.git | |
git push origin master |
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
This example shows how to setup an environment running Rails 3 beta 3 under ree-1.8.7-head with a 'rails3' gem set. | |
# pg gem does not seem to work with 1.9.2-head. Hence, reverting back to ree. | |
∴ rvm update --head | |
# ((Open a new shell)) or do 'rvm reload' | |
# If you do not already have the ruby interpreter installed, install it: | |
∴ rvm install ree-1.8.7-head |
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
require File.expand_path('../boot', __FILE__) | |
require 'rails/all' | |
# If you have a Gemfile, require the gems listed there, including any gems | |
# you've limited to :test, :development, or :production. | |
Bundler.require(:default, Rails.env) if defined?(Bundler) | |
module SampleApp | |
class Application < Rails::Application |
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
From 7cb51a4207a279f3f91dea854b6d70454a5fdb99 Mon Sep 17 00:00:00 2001 | |
From: Joe ST <joe@fbstj.net> | |
Date: Thu, 26 Aug 2010 21:09:32 +0100 | |
Subject: [PATCH] Adds HTTP basic auth | |
Signed-off-by: Joe ST <joe@fbstj.net> | |
--- | |
lib/base64.js | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
lib/cradle.js | 15 +++++++- | |
2 files changed, 124 insertions(+), 2 deletions(-) |
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
From 7cb51a4207a279f3f91dea854b6d70454a5fdb99 Mon Sep 17 00:00:00 2001 | |
From: Joe ST <joe@fbstj.net> | |
Date: Thu, 26 Aug 2010 21:09:32 +0100 | |
Subject: [PATCH] Adds HTTP basic auth | |
Signed-off-by: Joe ST <joe@fbstj.net> | |
--- | |
lib/base64.js | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
lib/cradle.js | 15 +++++++- | |
2 files changed, 124 insertions(+), 2 deletions(-) |
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
Undefined symbols: | |
"_EVP_CIPHER_CTX_block_size", referenced from: | |
node::Decipher::DecipherUpdate(v8::Arguments const&) in node_crypto_4.o | |
node::Decipher::DecipherFinal(v8::Arguments const&) in node_crypto_4.o | |
node::Decipher::DecipherFinalTolerate(v8::Arguments const&) in node_crypto_4.o | |
node::Cipher::CipherUpdate(v8::Arguments const&) in node_crypto_4.o | |
node::Cipher::CipherUpdate(v8::Arguments const&) in node_crypto_4.o | |
node::Cipher::CipherFinal(v8::Arguments const&) in node_crypto_4.o | |
"_BIO_set_flags", referenced from: | |
node::base64(unsigned char*, int, char**, int*)in node_crypto_4.o |
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
Checking for program g++ or c++ : /usr/bin/g++ | |
Checking for program cpp : /usr/bin/cpp | |
Checking for program ar : /usr/bin/ar | |
Checking for program ranlib : /usr/bin/ranlib | |
Checking for g++ : ok | |
Checking for program gcc or cc : /usr/bin/gcc | |
Checking for program ar : /usr/bin/ar | |
Checking for program ranlib : /usr/bin/ranlib | |
Checking for gcc : ok | |
Checking for library dl : yes |
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 | |
SERVER=https://api.no.de | |
SCRIPT="$0" | |
if [ ${SCRIPT:0:1} == "/" ]; then | |
SCRIPT="$(basename -- "$SCRIPT")" | |
fi | |
main () { | |
cmd=${1-help} |
OlderNewer