Skip to content

Instantly share code, notes, and snippets.

@lucaspiller
lucaspiller / never_gonna.ws
Created June 1, 2012 14:04
Never Gonna Give You Up (Whitespace)
@ozh
ozh / gist:5607258
Last active December 17, 2015 12:09
Firefox Responsive mode: custom resolutions

How to add custom resolutions in Firefox Responsive Mode

  1. open about:config
  2. look for devtools.responsiveUI.presets
  3. paste the following string: `[{"key":"2560x1440","width":2560,"height":1440},{"key":"1920x1200","width":1920,"height":1200},{"key":"1680x1050","width":1680,"height":1050},{"key":"1600x1200","width":1600,"height":1200},{"key":"1600x900","width":1600,"height":900},{"key":"1440x900","width":1440,"height":900},{"key":"1366x768","width":1366,"height":768},{"key":"1280x1024","width":1280,"height":1024},{"key":"1280x800","width":1280,"height":800},{"key":"1280x768","width":1280,"height":768},{"key":"1152x864","width":1152,"height":864},{"key":"1024x768","width":1024,"height":768},{"key":"800x600","width":800,"height":600},{"key":"800x1280","width":800,"height":1280},{"key":"768x1024","width":768,"height":1024},{"key":"640x960","width":640,"height":960},{"key":"360x640","width":360,"height":640},{"key":"320x480","width":320,"height":480},{"key":"320x396","width":320,"height":396},{"key":"2
@dankrause
dankrause / ssdp.py
Last active April 25, 2024 13:14
Tiny python SSDP discovery library with no external dependencies
# Copyright 2014 Dan Krause
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@sk89q
sk89q / lastfm_scrobbles_to_spotify.py
Created October 26, 2013 19:44
Fetches the recent tracks of a last.fm user within a date range and converts it to a list of Spotify URLs (to be copied directly into the Spotify program) sorted descending by play count
#!/usr/bin/env python2.7
import requests
import datetime
import calendar
import time
import json
from pprint import pprint
@Qard
Qard / scripts.json
Created February 17, 2014 03:51
This would be several hundred lines in grunt.
{
"start": "node --harmony server.js",
"dev": "exec-parallel 'npm run watch' 'npm run watch:test' 'nodemon --harmony server.js'",
"test": "mocha --harmony",
"coverage": "npm run coverage:report",
"coverage:build": "rm -rf coverage && node --harmony istanbul cover _mocha",
"coverage:report": "npm run coverage:build && istanbul report",
"coverage:html": "npm run coverage && node-open coverage/lcov-report/index.html",
"build": "exec-parallel 'npm run build:js' 'npm run build:css'",
"build:js": "browserify assets/js/main.js -o public/js/bundle.js",
@Michcioperz
Michcioperz / gist:a514531d6f897e19ba94
Created October 29, 2014 14:26
1D pong on atmega8 (WIP)
#include <avr/io.h>
#include <avr/interrupt.h>
int dir = 0;
int main() {
TIMSK |= (1<<TOIE0);
DDRD = (1<<PD3);
PORTD |= (1<<PD3) | (1<<PD2);
MCUCR |= (1<<ISC11);
You're sitting at your desk,
coding away with no rest.
Many little things to fix.
Did you know asie likes unix?
Stuck inside a loop, no break in sight.
Looks like I'll be staying up all night.
Though I'm already tired, it feels like I'm wired.
@pendingchaos
pendingchaos / README.md
Last active October 13, 2015 20:05
The most awesome arm printer.

Awesome Arms v1.0.0

Animation

Usage:

awesomearms <the number of lines of awesome arms>

Or:

@kylemcdonald
kylemcdonald / CameraImage.cpp
Created November 23, 2015 15:30
openFrameworks app for sending images to disk for processing, and reading text back from disk. Used for "NeuralTalk and Walk".
#include "ofMain.h"
#include "ofxTiming.h"
class ofApp : public ofBaseApp {
public:
ofVideoGrabber grabber;
DelayTimer delay;
ofTrueTypeFont font;
string description;
@marysaka
marysaka / pleroma_on_steamlink.md
Created November 16, 2017 12:30
Pleroma on the Steam Link