Skip to content

Instantly share code, notes, and snippets.


Manfred Touron moul

Block or report user

Report or block moul

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View person.ajs
// Alternative JavaScript Syntax
Person = :(name, address) { @name!, @address! }
Person::inspect = :{ <: "{@name} lives at {@address}" }
tj := Person('TJ', '314 Bessborough ave')
bob := Person('Bob', 'Some place')
[tj, bob].each(:(person){ print(person.inspect()) })
endolith / Has weird right-to-left characters.txt
Last active Mar 24, 2020
Unicode kaomoji smileys emoticons emoji
View Has weird right-to-left characters.txt
View mice.css
.mouse, #preview{
position: absolute;
background-repeat: no-repeat;
height: 22px;
min-width: 15px;
z-index: 100;
background-image: url('../images/cursor.png');
paulirish / gist:616412
Created Oct 8, 2010
"iframe" sitedown fallback via <object>
View gist:616412
<!-- so it turns out that the object tag can act like an iframe
but the cool thing is you can nest object tags inside eachother for a fallback path.
what this means is you can "objectframe" a site.. and if it fails.. (site down, offline, whatever).. it'll use the next one.
so you can objectframe the live site and fallback to a screenshot.
or something.
demo at :
pete / 0-README
Last active Feb 21, 2020
Various implementations of the 'cat' command, for comparison.
I turned this gist into a "real" repository. It is here: .
Here, placed side-by-side for comparison, are GNU's implementation of
cat, Plan 9's implementation, Busybox's implementation, and NetBSD's
implementation, Seventh Edition Unix (1979), and 4.3BSD.
For good measure (and because I suppose I am now committed to collecting
cats) also included are Second Edition Unix (in assembly) and Inferno's
implementation (in Limbo) for good measure.
jacob414 /
Created Dec 9, 2010
Quick and dirty Javascript repr() function using CoffeeScript
repr = (o, depth=0, max=2) ->
if depth > max
switch typeof o
when 'string' then "\"#{o.replace /"/g, '\\"'}\""
when 'function' then 'function'
when 'object'
if o is null then 'null'
if _.isArray o
View drag-drop-datatransfer-hack.js
// Originally solved by Tim Branyen in his drop file plugin
View gist:1369931
cd /path/to/platform/sites/
drush sql-query "SHOW TABLES" | tail -n +2 | xargs -I '{}' echo "ALTER TABLE {} ENGINE=INNODB;" > alter_table.sql
perl -p -i -e 's/(search_[a-z_]+ ENGINE=)INNODB/\1MYISAM/g' alter_table.sql
cat alter_table.sql | `drush sql-connect`
drewjoh / custom.js
Created Jan 27, 2012
Dynamic (AJAX) loaded Bootstrap Modal (Bootstrap 2.1)
View custom.js
$(document).ready(function() {
// Support for AJAX loaded modal window.
// Focuses on first input textbox after it loads the window.
$('[data-toggle="modal"]').click(function(e) {
var url = $(this).attr('href');
if (url.indexOf('#') == 0) {
} else {
View dabblet.css
* Kit-Cat Clock
body {
/*margin: 200px;*/
You can’t perform that action at this time.