A Pen by Crianbluff on CodePen.
A Pen by Emran Khan on CodePen.
### Keybase proof | |
I hereby claim: | |
* I am boycaught on github. | |
* I am boycaught (https://keybase.io/boycaught) on keybase. | |
* I have a public key whose fingerprint is C8C4 344C B6E3 FB5E 1258 7F82 B803 4D70 F4AF 1C97 | |
To claim this, I am signing this object: |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
/* /////////////////////////////////////////////////////////////////////////// | |
Simple YOUTUBE-DL function | |
AUTHOR: .LAG (@boycaught) | |
VERSION: 0.0.1 | |
DATE: 2014-10-18 | |
/////////////////////////////////////////////////////////////////////////// */ | |
var exec = require('child_process').exec; |
#Mac OS X
These days some people were discussing at meteor-talk group about running Meteor at Windows and I’ve recommended them using Vagrant. It’s a very developer-friendly piece of software that creates a virtual machine (VM) which let you run any operating system wanted and connect to it without big efforts of configuration (just make the initial installation and you have it working).
Many packages (I've tested) for running Meteor+Vagrant fails because Meteor writes its mongodb file and also other files inside local build folder into a shared folder between the Windows host and the Linux guest, and it simply does not work. So I've put my brain to work and found a solution: do symlinks inside the VM (but do not use ln. Use mount so git can follow it). It’s covered on steps 8 to 15.
If you have no idea what I’m talking about, I’ve made a tutorial to install Ubuntu Precise x86 through Windows command-line with Meteor very simple to follow
function CreateStoryController($scope, $http) { | |
// Create callback for success, injected into controller scope. | |
$scope.submitStory = function() { | |
var success = function(data, status, headers, config) { | |
$scope.message = 'Success!'; | |
}; | |
// Create callback for failure. | |
var failure = function(data, status, headers, config) { |
// Nicked from: http://feedproxy.google.com/~r/cloudant/~3/3sqjw_b2Ekg/make-it-easy | |
// Dependencies: JQuery and sag.js (http://www.saggingcouch.com/) | |
$(function() { | |
// since I want to work locally (but use Cloudant data), I've set up a reverse proxy | |
// more on reverse proxy: http://wiki.apache.org/couchdb/Apache_As_a_Reverse_Proxy | |
// use sag.js to connect | |
var user_db = 'my-Cloudant-database-name'; | |
var couch = sag.server('my-server'); // localhost | |
couch.setDatabase(user_db); |
<!--- suggested on: http://stackoverflow.com/questions/4738610/downloading-large-file-in-coldfusion-using-cfhttp ---> | |
<cfscript> | |
source = 'protocol://domain/path/to/file.ext'; | |
destination = getDirectoryFromPath(getCurrentTemplatePath()) & listlast(source, "/"); | |
// bytearray routine | |
private binary function getByteArray ( | |
required numeric size | |
) | |
output = false |