Skip to content

Instantly share code, notes, and snippets.

@andreyryabtsev
andreyryabtsev / backmatting.ipynb
Last active June 5, 2024 04:56
BackMatting.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@staltz
staltz / introrx.md
Last active June 29, 2024 15:58
The introduction to Reactive Programming you've been missing
@dnf
dnf / git-shove
Created November 15, 2013 21:50
Implementation of git shove we use at Medium
#!/bin/sh
if [ "master" = "$(git rev-parse --abbrev-ref HEAD)" ] ; then
echo "\033[1;31mYou may not shove master\033[0m"
exit 1;
fi
exec git push --force origin HEAD
@pamelafox
pamelafox / gist:6718591
Last active December 24, 2015 00:40
A surprising use of JS
// Pop quiz!
// 1. What will x and y be in this code?
(function() {
var x = 5;
var y = 10;
var coordinates = x, y;
console.log('First');
console.log(x);

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

@kn
kn / TestTwitterFlightWithJasminOnRoR.md
Last active December 15, 2015 04:39
Test Twitter Flight components with Jasmine on Ruby on Rails

Test Twitter Flight components with Jasmine on Ruby on Rails

Twitter Flight is great framework for organizing frontend codebase. It make it more productive to work with and easier to test. However, it lacks in support for testing its modules. Moreover, there is not many guidance available on the web yet since it is fairly new.

This post explains how I setted up both in-browser and headless jasmine test for Twitter flight components used in Rails app.

Followings are used for the setup:

@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@wickman
wickman / README.md
Created April 12, 2012 22:55
Python development in Pants (tutorial)

Python development using Pants

brian wickman - @wickman

[TOC]

Why use Pants for Python development?

Pants makes the manipulation and distribution of hermetically sealed Python environments