Skip to content

Instantly share code, notes, and snippets.

View wo0dyn's full-sized avatar

Nicolas Dubois wo0dyn

View GitHub Profile
@nhoizey
nhoizey / screenshots.js
Created November 12, 2012 17:07
Take screenshots at different viewport sizes using CasperJS
/*
* Takes provided URL passed as argument and make screenshots of this page with several viewport sizes.
* These viewport sizes are arbitrary, taken from iPhone & iPad specs, modify the array as needed
*
* Usage:
* $ casperjs screenshots.js http://example.com
*/
var casper = require("casper").create();
@davidbgk
davidbgk / parisweb2012.md
Created October 21, 2012 15:05
Retours ParisWeb 2012

Retours ParisWeb 2012

Préambule

Avant tout : merci. Je sais à quel point le boulot d'organisateur est ingrat et chronophage, c'était une réussite autant dans la logistique que dans l'ambiance qui reste non-commerciale (ça parait anodin comme ça mais c'est rare…).

Vous avez pris des risques (mesurés) cette année avec les informelles et je suis très heureux de voir apparaitre ce nouveau format qui me convient davantage.

Mon expérience

@dvarrazzo
dvarrazzo / ditaa_rst.py
Last active June 8, 2022 04:05
ditaa ascii art diagrams in reStructuredText
#!/usr/bin/env python
"""Custom reST_ directive for ditaa_ integration.
.. _reST: http://docutils.sourceforge.net/rst.html
.. _ditaa: http://ditaa.sourceforge.net/
"""
import os
import tempfile
from zlib import adler32
@gertig
gertig / Mac style drop shadow.css
Created August 23, 2012 20:38
Mac style drop shadow
box-shadow:inset 0 1px 0 rgba(255,255,255,.6), 0 22px 70px 4px rgba(0,0,0,0.56), 0 0 0 1px rgba(0, 0, 0, 0.3);
@wo0dyn
wo0dyn / gist:3340763
Last active March 17, 2023 11:04
Write “KFC” with one-line-script using the string “Kentucky Fried Chicken” once.

KFC

Write KFC with one-line-script using the string “Kentucky Fried Chicken” once.

Bash

for w in $(echo "Kentucky Fried Chicken" | tr " " "\n"); do echo -n ${w:0:1}; done;
@tuzz
tuzz / github.css
Last active April 19, 2025 21:11
Github Markdown Stylesheet
/*
Copyright (c) 2017 Chris Patuzzo
https://twitter.com/chrispatuzzo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@schmurfy
schmurfy / gist:3199254
Created July 29, 2012 14:33
Install pandoc Mac OS X 10.8
# Install MacTex: http://mirror.ctan.org/systems/mac/mactex/mactex-basic.pkg
$ sudo chown -R `whoami` /usr/local/texlive
$ tlmgr update --self
$ tlmgr install ucs
$ tlmgr install etoolbox
# Install pandoc view homebrew
@simonw
simonw / setting-up-sublime-text-2.txt
Created July 11, 2012 12:35
Setting up Sublime Text 2
First, install it from http://www.sublimetext.com/2
Next, install the package control extension from here:
http://wbond.net/sublime_packages/package_control
Installation instructions here: http://wbond.net/sublime_packages/package_control/installation
Restart Sublime, then hit Shift+Apple+P and search for "Package Control: Install Package"
@n1k0
n1k0 / sublime-day.js
Created June 28, 2012 09:32
Finds your daily SublimeText2 package using CasperJS. Yeah, randomly.
/**
* Finds your daily SublimeText2 package. Yeah, randomly.
*
* Requires CasperJS: http://casperjs.org/
*
* Usage: $ casperjs sublime-day.js
*/
var casper = require('casper').create();
var f = require("utils").format;
var packages = [];