Skip to content

Instantly share code, notes, and snippets.

paularmstrong / jquery.fancyselect.css
Created Sep 12, 2011
Fancy Select Box replacement that allows you to style everything about your select box
View jquery.fancyselect.css
.fancyselect {
display: inline;
position: absolute;
padding: 2px 2px 0 2px;
} {
background: #FFF;
border: 2px solid #DDD;
padding: 0;
paularmstrong / verifyemail.js
Created Jun 28, 2012
Verify email addresses
View verifyemail.js
// Verify an email address
// Usage: node verifyemail.js
var exec = require('child_process').exec,
net = require('net'),
email = process.argv.splice(2)[0],
domain = email.split('@')[1];
function verify(mxrecord) {
console.log('connecting to', mxrecord, '...');
paularmstrong / index.html
Created Nov 24, 2012
Spritesheet animation tester
View index.html
<!doctype html>
<meta charset="utf-8">
<title>Sprite Animation Tester</title>
<style type="text/css">
* {
badsyntax / labelled_marker.js
Created Apr 12, 2012
Google Maps V3 Labelled Marker
View labelled_marker.js
* An example of how to use a Google Map overlay to display a label on top of marker.
* This is a slight re-work of
* I suggest you rather view that blog post, this code is pasted here purely for my own personal reference.
point = {
lat: 37.8478115,
long: 15.2934327
dariusk / canvas2Xscale.js
Created Aug 29, 2011
Artifact-free screen scaling for a canvas game, limited to 1X, 2X, 4X
View canvas2Xscale.js
// Adapted from Zachary Johnson's Commander Clone 0.2 screen scaling example
// Modified to strictly choose 1X or 2X or 4X scaling as appopriate, so we don't end up with screwed up scaling artifacts.
// NOTE: uses jQuery for the DOM load event
$(function () {
window.addEventListener('resize', fullScreenify, false);
function fullScreenify() {
View fluid_sim_pico8.lua
function spawndrop(x,y)
// {x, y, old_x, old_y, hit_count}
function sortfluid()
for i=2,#fluid do
phoboslab / touch-button.js
Last active Aug 10, 2021
Touch Button Plugin for Impact
View touch-button.js
.defines(function(){ "use strict";

How To Start Twitter Botting -- The Boring Parts

The boring parts of standing up a twitter bot I always forget. This guide should get you from "I got absolutely nothing" to "I posted a thing to twitter with Python!"

Here's the deal. If you make a bunch of bot accounts, and all those accounts are tied to one cell phone number, you are in for a round of API access recovation musical chairs.

To get around this, you need to create your own central twitter app. This app will in turn then be used by all your bot accounts. This app will be tied to your main account, backed by your phone number.

1. Create a Twitter Dev Account

ronkorving / ios6-timers.js
Last active Mar 9, 2022
iOS6 webkit timer bug workaround
View ios6-timers.js
(function (window) {
// This library re-implements setTimeout, setInterval, clearTimeout, clearInterval for iOS6.
// iOS6 suffers from a bug that kills timers that are created while a page is scrolling.
// This library fixes that problem by recreating timers after scrolling finishes (with interval correction).
// This code is released in the public domain. Do with it what you want, without limitations. I do not promise
// that it works, or that I will provide support (don't sue me).
// Author:
var timeouts = {};
Copyright (c) 2011 ZURB,