Skip to content

Instantly share code, notes, and snippets.

View jasisk's full-sized avatar
👋

Jean-Charles Sisk jasisk

👋
View GitHub Profile
@jasisk
jasisk / replaceWithCrab.js
Last active August 29, 2015 14:04
SUPERSEDED: jasisk/slack-emoji-randomizer - Slack userscript to replace all your emojis with 🦀
(function () {
function replaceText(msg, replaceWith) {
emoji.init_colons();
msg = emoji.replace_emoticons_with_colons(msg);
return msg.replace(emoji.rx_colons, function (colonEmoji) {
var emojiKey = colonEmoji.substr(1, colonEmoji.length-2);
var replacement = emoji.map.colons[emojiKey];
return replacement ? replaceWith : colonEmoji;
});
}
@jasisk
jasisk / emoticons.json
Last active February 5, 2019 19:49
List of emoticons available in Skype
[
{
"angel": {
"Name": "Angel",
"Facebook": null,
"Skype": [
"(angel)",
"(A)",
"(a)"
]

Keybase proof

I hereby claim:

  • I am jasisk on github.
  • I am jeancharles (https://keybase.io/jeancharles) on keybase.
  • I have a public key whose fingerprint is 9C37 5803 C5A0 CAE8 019F F121 3CE8 4446 6CD1 B083

To claim this, I am signing this object:

@jasisk
jasisk / kittens.js
Created February 3, 2012 02:43
kittens!!!
javascript:(function(){var a=document.getElementsByTagName('img'),i=a.length;while(b=a[--i]){b.setAttribute('src','http://placekitten.com/'+b.width+'/'+b.height);}}());
@jasisk
jasisk / install_stylus.sh
Created July 15, 2011 18:51
Steps to install Stylus (CSS Preprocessor) in home directory
curl http://nodejs.org/dist/node-v0.4.9.tar.gz | tar xz
cd node-v0.4.9/
./configure --prefix=~/local
mkdir ~/local
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
make install
curl http://npmjs.org/install.sh | sh
npm-g install stylus
@jasisk
jasisk / gist:848610
Created March 1, 2011 04:28
Kittenator Bookmarklet
javascript:(function(){var a=document.getElementsByTagName('img'),i=a.length;while(b=a[--i]){b.setAttribute('src','http://placekitten.com/'+b.width+'/'+b.height);}})();
@jasisk
jasisk / FB+JS.js
Created December 1, 2010 16:44
Loads Firebug Lite (if necessary) and jQuery (if necessary)
(function(){
if (typeof window.console === 'undefined'){
//Load Firebug Lite
var firebug_Script = document.createElement('script');
firebug_Script.setAttribute('src','https://getfirebug.com/firebug-lite.js#startOpened');
document.body.appendChild(firebug_Script);
var tI = setInterval(function(){
if(typeof window.console !== 'undefined'){
console.info('Firebug Lite attached.');
clearInterval(tI);
@jasisk
jasisk / gist:261219
Created December 21, 2009 20:46
Cheating code for the mathfacts website.
javascript:(function(){var Q2 = Question;Question = function(){Q2.apply(this,arguments);var a = arguments[3];setTimeout(function(){qdoc.getElementsByName("answer")[0].value = a;setTimeout(checkAnswer,100);},100);};alert("CHEATER!");})();