Skip to content

Instantly share code, notes, and snippets.

@paularmstrong
paularmstrong / jquery.fancyselect.css
Created September 12, 2011 17:05
Fancy Select Box replacement that allows you to style everything about your select box
.fancyselect {
display: inline;
position: absolute;
padding: 2px 2px 0 2px;
}
.fancyselect.open {
background: #FFF;
border: 2px solid #DDD;
padding: 0;
}
@paularmstrong
paularmstrong / verifyemail.js
Created June 28, 2012 19:13
Verify email addresses
// Verify an email address
// Usage: node verifyemail.js billgates@gmail.com
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
paularmstrong / index.html
Created November 24, 2012 03:35
Spritesheet animation tester
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Sprite Animation Tester</title>
<style type="text/css">
* {
@dariusk
dariusk / canvas2Xscale.js
Created August 29, 2011 14:38
Artifact-free screen scaling for a canvas game, limited to 1X, 2X, 4X
// Adapted from Zachary Johnson's Commander Clone 0.2 screen scaling example http://www.zachstronaut.com/projects/commander-clone/0.2/game.html
// 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 () {
fullScreenify();
window.addEventListener('resize', fullScreenify, false);
function fullScreenify() {
@2DArray
2DArray / fluid_sim_pico8.lua
Created May 5, 2018 01:26
Pico8 Fluid Sim
fluid={}
poke(0x5f2d,1)
function spawndrop(x,y)
// {x, y, old_x, old_y, hit_count}
add(fluid,{x,y,x,y,1})
end
function sortfluid()
for i=2,#fluid do
@phoboslab
phoboslab / touch-button.js
Last active August 10, 2021 14:44
Touch Button Plugin for Impact
ig.module(
'plugins.touch-button'
)
.requires(
'impact.system',
'impact.input',
'impact.image'
)
.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
ronkorving / ios6-timers.js
Last active March 9, 2022 03:40
iOS6 webkit timer bug workaround
(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: rkorving@wizcorp.jp
var timeouts = {};
@jpattishall
jpattishall / TouchTimerWorkaround.js
Last active September 1, 2022 07:58
setTimeout workaround for iPad and iOS6
/**
Workaround for iOS 6 setTimeout bug using requestAnimationFrame to simulate timers during Touch/Gesture-based events
Author: Jack Pattishall (jpattishall@gmail.com)
This code is free to use anywhere (MIT, etc.)
Note: UIWebView does not support requestAnimationFrames. If your timer is failing during a scroll event,
take a look at https://gist.github.com/ronkorving/3755461 for a potential workaround.
Usage: Pass TRUE as the final argument for setTimeout or setInterval.
@jgarber
jgarber / MIT-LICENSE.txt
Created April 4, 2012 14:57
Responsive video
Copyright (c) 2011 ZURB, http://www.zurb.com/