This file contains hidden or 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
exports.show = function (req, res, next) { | |
var username = req.params.username; | |
var query = User.where({ username: username }); | |
query.findOne(function (err, user) { | |
if (err) return next(err); | |
if (!user) return res.send(401); | |
res.json(user.profile); // this is where the magic happens | |
}); | |
}; |
This file contains hidden or 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
sent1nel in ~/Desktop/apps/TwitterBot (v0.10.32) on master ● λ cat index.coffee | |
twit = require 'twit' | |
opts = | |
consumer_key: 'a' | |
consumer_secret: 'b' | |
access_token: 'c' | |
access_token_secret: 'd' | |
T = new twit(opts) |
This file contains hidden or 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
// <canvas id="starfall" /> | |
// #starfall { | |
// height: 315px; | |
// width: 850px; | |
// } | |
// processing 1.4.7 | |
var stars = []; | |
function Starfall(processing) { |
This file contains hidden or 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
$ unset M2_HOME | |
$ cat /etc/mavenrc | |
JAVA_HOME=`/usr/libexec/java_home -v 1.6` |
This file contains hidden or 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
~/Workspace/amp-client/ (master)$ brew versions maven | |
Warning: brew-versions is unsupported and will be removed soon. | |
You should use the homebrew-versions tap instead: | |
https://github.com/Homebrew/homebrew-versions | |
3.2.3 git checkout 941f311 /usr/local/Library/Formula/maven.rb | |
3.2.2 git checkout 47fc814 /usr/local/Library/Formula/maven.rb | |
3.2.1 git checkout 5750c48 /usr/local/Library/Formula/maven.rb | |
3.1.1 git checkout 3e039d4 /usr/local/Library/Formula/maven.rb | |
3.1.0 git checkout f160fa9 /usr/local/Library/Formula/maven.rb |
This file contains hidden or 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
commit 146332babdf5918ec68c390d3e6e4904271ef087 | |
Author: sent1nel <[email protected]> | |
Date: Fri Oct 3 10:41:08 2014 -0400 | |
two. fibonacci numbers :) | |
commit 5d81579953c778bbe338c8937333d28f197c0476 | |
Author: sent1nel <[email protected]> | |
Date: Thu Oct 2 23:31:37 2014 -0400 |
This file contains hidden or 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
$charcoal: #20201f; | |
$brick: #ad3434; | |
@font-face { | |
font-family: 'Miller Light'; | |
src: font-url('millerdisplay-light-webfont.eot'); | |
src: font-url('millerdisplay-light-webfont.eot?#iefix') format('embedded-opentype'), | |
font-url('millerdisplay-light-webfont.woff') format('woff'), | |
font-url('millerdisplay-light-webfont.ttf') format('truetype'), | |
font-url('millerdisplay-light-webfont.svg#millerl') format('svg'); |
This file contains hidden or 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 | |
# FIXME: | |
# WARNING: Nokogiri was built against LibXML version 2.9.0, but has dynamically loaded 2.8.0 | |
NOKOGIRIR_VERSION=${1:-1.6.1} | |
LIBXML_VERSION=${2:-2.9.1} | |
LIBXSLT_VERSION=${3:-1.1.28} | |
gem uninstall nokogiri libxml-ruby |
This file contains hidden or 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
╭─sent1nel@syndicate ~ ‹system› | |
╰─$ setopt interactivecomments |
This file contains hidden or 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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
shell: { | |
bower: { | |
command: 'bower install' | |
} | |
}, | |
bower_concat: { | |
all: { | |
dest: 'javascripts/bower.js', |