Skip to content

Instantly share code, notes, and snippets.

View liamengland1's full-sized avatar
💭
I may be slow to respond.

LE liamengland1

💭
I may be slow to respond.
  • 19:57 (UTC -04:00)
View GitHub Profile
@endolith
endolith / Has weird right-to-left characters.txt
Last active June 1, 2024 10:58
Unicode kaomoji smileys emoticons emoji
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
<div class="lockup-container selection genius swoosh music album" goto-page-href='/WebObjects/MZPersonalizer.woa/wa/sx?es=1&amp;mt=1' selection-key-param='genreId' rows="2">
<div class="title">
<h2>Genius Recommendations</h2>
<a class="see-all" href="http://my.itunes.apple.com/WebObjects/MZPersonalizer.woa/wa/seeAllRecommendations?mt=1">See All</a>
/* Use this to cause a function to fire no more than once every 'ms' milliseconds.
For example, an expensive mousemove handler:
$('body').mouseover(ratelimit(function(ev) {
// ...
}, 250));
*/
function ratelimit(fn, ms) {
var last = (new Date()).getTime();
bash>$ heroku rake sample_data:sample_company count=100 --app karelaccept
(in /disk1/home/slugs/157396_5a6081a_515c/mnt)
Created Major Software
Created Thomas Industrial
Created Anderson Enterprises
Created Thomas Software
Created Clarkson Productions
Created Johnson Software
Created Harrison Productions
Created Garcia Productions
@eligrey
eligrey / object-watch.js
Created April 30, 2010 01:38
object.watch polyfill in ES5
/*
* object.watch polyfill
*
* 2012-04-03
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
validates_attachment_content_type :attachment, {
:content_type =>
# DOC
%w( application/msword application/doc appl/text application/vnd.msword application/vnd.ms-word application/winword application/word application/x-msw6 application/x-msword ) +
# DOCX
%w( application/vnd.openxmlformats-officedocument.wordprocessingml.document ) +
# ODT
%w( application/vnd.oasis.opendocument.text application/x-vnd.oasis.opendocument.text ) +
# SXW
%w( application/vnd.sun.xml.writer ) +
@Kilian
Kilian / annoying.js
Created January 6, 2011 15:04
How to be an asshole
/**
* Annoying.js - How to be an asshole to your users
*
* DO NOT EVER, EVER USE THIS.
*
* Copyright (c) 2011 Kilian Valkhof (kilianvalkhof.com)
* Visit https://gist.github.com/767982 for more information and changelogs.
* Visit http://kilianvalkhof.com/2011/javascript/annoying-js-how-to-be-an-asshole/ for the introduction and weblog
* Check out https://gist.github.com/942745 if you want to annoy developer instead of visitors
*
@bebraw
bebraw / gameengines.md
Created January 6, 2011 18:07
List of JS game engines. You can find a wikified version at https://github.com/bebraw/jswiki/wiki/Game-Engines. Feel free to modify that. I sync it here every once in a while.

IMPORTANT! Remember to check out the wiki page at https://github.com/bebraw/jswiki/wiki/Game-Engines for the most up to date version. There's also a "notes" column in the table but it simply does not fit there... Check out the raw version to see it.

This table contains primarily HTML5 based game engines and frameworks. You might also want to check out the [[Feature Matrix|Game-Engine-Feature-Matrix]], [[Game Resources]] and [[Scene Graphs]].

Name Size (KB) License Type Unit Tests Docs Repository Notes
Akihabara 453 GPL2, MIT Classic Repro no API github Intended for making classic arcade-style games in JS+HTML5
AllBinary Platform Platform Dependent AllBinary 2D/2.5D/3D n
@gtzilla
gtzilla / merge commits git
Created January 25, 2011 07:15
instructions I need to merge git commits together
http://stackoverflow.com/questions/598672/git-how-to-squash-the-first-two-commits
# Go back to the last commit that we want to form the initial commit (detach HEAD)
git checkout <sha1_for_B>
# reset the branch pointer to the initial commit,
# but leaving the index and working tree intact.
git reset --soft <sha1_for_A>
# amend the initial tree using the tree from 'B'
@henrik
henrik / google_art_project.rb
Created February 5, 2011 23:22
I'M AFRAID THIS SCRIPT NO LONGER WORKS! MAYBE http://www.student.tugraz.at/kollmitzer/gap_howto.html OR https://github.com/EmelyanenkoK/GAPDownloader DOES. SEE COMMENTS. Google Art Project fullsize image downloader. Specify the page URL and the tiles are downloaded, stitched and trimmed.
# Google Art Project fullsize image downloader.
# By Henrik Nyh <http://henrik.nyh.se> 2011-02-05 under the MIT license.
# Requires Ruby and ImageMagick.
#
# NOTE:
# I'm afraid this script no longer works! See the Gist comments.
#
# Usage e.g.:
# ruby google_art_project.rb http://www.googleartproject.com/museums/tate/portrait-of-william-style-of-langley-174
#