Skip to content

Instantly share code, notes, and snippets.

Florent Galland Flolagale

Block or report user

Report or block Flolagale

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
cletusw / .eslintrc
Last active Nov 14, 2019
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
View .eslintrc
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names
anandsunderraman / setChromeOptions.js
Last active Nov 14, 2019
Selenium Web Driver Set Chrome Options
View setChromeOptions.js
//import the selenium web driver
var webdriver = require('selenium-webdriver');
var chromeCapabilities =;
//setting chrome options to start the browser fully maximized
var chromeOptions = {
'args': ['--test-type', '--start-maximized']
chromeCapabilities.set('chromeOptions', chromeOptions);
var driver = new webdriver.Builder().withCapabilities(chromeCapabilities).build();
mikermcneil / using-raw-socket-io-in-sails.js
Created Sep 17, 2013
Using raw functionality in a Sails.js controller
View using-raw-socket-io-in-sails.js
module.exports = {
* Using raw functionality from a Sails.js controller
index: function (req,res) {
lpsBetty / bookmarklet.js
Last active Apr 13, 2018
howto make an angular app with a JS bookmarklet
View bookmarklet.js
* redirect javascript bookmarklet
// javascript:location.href=''+encodeURIComponent(location.href)
* bookmarklet loaded on site
jakeonrails / Ruby Notepad Bookmarklet
Created Jan 29, 2013
This bookmarklet gives you a code editor in your browser with a single click.
View Ruby Notepad Bookmarklet
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script>
joelclermont / gist:3735026
Created Sep 17, 2012
using yepnope for twitter js and css with local fallback
View gist:3735026
function cssLoaded(href) {
var cssFound = false;
for (var i = 0; i < document.styleSheets.length; i++) {
sheet = document.styleSheets[i];
if (sheet['href'].indexOf(href) >= 0 && sheet['cssRules'].length > 0) {
cssFound = true;
roderik / .travis.yml
Last active Mar 2, 2019
Installing Apache with PHP in Travis-CI
View .travis.yml
language: php
- 5.3
- 5.4
- sudo apt-get install apache2
- sudo a2enmod actions
- sudo a2enmod rewrite
pfig /
Created Feb 12, 2012
Make a multi-resolution favicon.ico from a source image, using ImageMagick
# from
convert source-WxW.png -resize 256x256 -transparent white favicon-256.png
convert favicon-256.png -resize 16x16 favicon-16.png
convert favicon-256.png -resize 32x32 favicon-32.png
convert favicon-256.png -resize 64x64 favicon-64.png
convert favicon-256.png -resize 128x128 favicon-128.png
jafstar / app.js
Created Dec 19, 2011
Formidable + CloudMailin
View app.js
//MSG'/msg', function(req, res){
if (req.url == '/msg') {
var form = new formidable.IncomingForm(),
fields = [];
form.on('error', function(err) {
res.writeHead(200, {'content-type': 'text/plain'});
bergie / .gitignore
Created Sep 19, 2011
Node.js email handling examples
View .gitignore
You can’t perform that action at this time.