Skip to content

Instantly share code, notes, and snippets.

krishnanalluri /
Last active Aug 25, 2015 — forked from jookyboi/
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.


  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
krishnanalluri /
Last active Aug 25, 2015 — forked from jookyboi/
Rails-related Gems and guides to accelerate your web project.


  • Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
  • rabl - General ruby templating with json, bson, xml, plist and msgpack support
  • Thin - Very fast and lightweight Ruby web server
  • Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
  • SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
  • Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
  • [factory_girl](h
Sourdoughnerd / foodstyle.css
Created Aug 25, 2015
Week 1 - Day 2 - Choose your own adventure
View foodstyle.css
h1 {
font-family: courier;
p {
color: rgb(200,218,218);
div p {
color: #000099;
i {
mirekfranc /
Last active Aug 25, 2015
get list of cpu flags for quick checking
use v5.10;
sub cpuinfo
my $flags;
open my $cpuinfo, "<", "/proc/cpuinfo" or die "failed to open /proc/cpuinfo: $!\n";
while (<$cpuinfo>)
if (/flags/)
View promise-loop-sequence.js
var urlList = model.getURLs();
var loadAndParse = function (url)
// both load() and parse() are promise based functions
return load(url).then(parse);
* Allows for the sequentially calling of promise based functions by iterating over a list of
import os
jcfr / 2015-08-25_test_cmake_download_from_dropbox.cmake
Last active Aug 25, 2015
Simple CMake script to help Jorge identify issue with the version of CMake used to setup Slicer miniconda dashboard on MacOSX
View 2015-08-25_test_cmake_download_from_dropbox.cmake
# To run the script:
# cmake -DDEST=/home/jcfr -P 2015-08-25_test_cmake_download_from_dropbox.cmake
set(DEST ".")
jainnitin /
Last active Aug 25, 2015 — forked from molaschi/
Integrate Stash with Slack using webhooks

This is a short article on how we integrate stash and slack

First of all i assume you have:

  • a working stash installation
  • a repository you to notify slack on pushes
  • stash user with administration priviledges
  • full access to the server (linux) where stash is installed on
  • a team configured on slack
  • slack user with administration priviledges
View user-initials.html
<title>User Initials</title>
/* Relevant Code */
.person {
display: table;
margin: 24px auto;
bgulla /
Created Aug 25, 2015
Python Webserver that serves up a flat HTML file.
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from time import gmtime, strftime
import sys,random,socket
HOSTNAME = socket.gethostname()
if len(sys.argv) > 1:
You can’t perform that action at this time.