Skip to content

Instantly share code, notes, and snippets.

@deobald
deobald / monochromacy-android.md
Last active February 6, 2023 12:23
Installing Tiles for Monochromacy on Andoid
@developit
developit / README.md
Last active August 25, 2024 14:22
Webpack Starter Template

Webpack Starter Template

This is a basic Webpack project template for a web app written in ES6 & LESS.

This assumes you have a directory structure as follows:

package.json
webpack.config.js
src/
@jksuom
jksuom / lindiop.rst
Created August 4, 2015 08:04
Linear diophantine equations

Linear diophantine equations

A general linear nonhomogeneous diophantine equation is of the form

a_0x_0 + a_1x_1 +\cdots+ a_nx_n = c

where the coefficients a_i and the constant c are integers. The components x_i of its solutions are also expected to be integers.

@rmehta
rmehta / goi_open_source_initiative.md
Last active October 15, 2015 09:37
What can we expect from Govt of India's new Push into Open Source

What can we expect from Govt of India's new Push into Open Source

The government of India has recently announced a big push into Open Source as a part of its Digital Initiative. For a country of more than a billion people and thousands of government organizations, this seems like a big and long overdue move. This will no doubt give boost to the faltering Free and Open Source Software communities in India. On the face of it, this initiative should not be written off as yet another bureaucratic exercise into nothingness, because the program seems to be headed by an able administrator, RS Sharma, who was a part of the massive Universal ID (UID) project executed by the government of India that has issued bio-metric based IDs to [around 700 million Indians](http://en.wikipe

@hargup
hargup / a_prose_a_day_6_4_14
Last active July 13, 2020 18:51
Electricity at last.
There were a bunch of people sitting on the mattress, playing cards.
They were having a good old laugh.
Even when they were not drinking from the glass.
But that wasn't a scene that would last.
@cobyism
cobyism / gh-pages-deploy.md
Last active November 11, 2024 00:02
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@abelsonlive
abelsonlive / entarteur.py
Created December 5, 2012 05:35
use facepy for facebook feed dumps
from facepy import GraphAPI
import facepy
import re
import json
#meta variables
access_token = 'your_token'
page_id = 'the_page' # input page id here
base_query = page_id + '/feed?limit=300'
@chitchcock
chitchcock / 20111011_SteveYeggeGooglePlatformRant.md
Created October 12, 2011 15:53
Stevey's Google Platforms Rant

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@chrisjacob
chrisjacob / README.md
Created February 18, 2011 03:44
Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").

Intro

Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").

Author: Chris Jacob @_chrisjacob

Tutorial (Gist): https://gist.github.com/833223

The Result