Skip to content

Instantly share code, notes, and snippets.

Greg Franko gfranko

Block or report user

Report or block gfranko

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 gist:2c9a6ac25c57d7746277
echo 'kern.maxfiles=20480' | sudo tee -a /etc/sysctl.conf && echo -e 'limit maxfiles 8192 20480\nlimit maxproc 1000 2000' | sudo tee -a /etc/launchd.conf && echo 'ulimit -n 4096' | sudo tee -a /etc/profile
@staltz
staltz / introrx.md
Last active Jan 21, 2020
The introduction to Reactive Programming you've been missing
View introrx.md
@thomasfr
thomasfr / Git push deployment in 7 easy steps.md
Last active Jan 20, 2020
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook
View Git push deployment in 7 easy steps.md
View intro.js
;(function (id, name, context, definition) {
// --------------------------------------------------------------------------
// Dependencies
//
// This is an attempt to make this library compatible with multiple module
// formats. Other UMD implementations do not take into account dependencies:
// Example: https://github.com/ForbesLindesay/umd/blob/master/template.js
//
// **NOTE: Named AMD modules are more suitable for libraries as it provides
View Front-End Blog Post Ideas
1. Creating Maintainable JavaScript Libraries with AMDClean
2. Backbone.js Custom Builds
3. Grunt or Gulp?
4. Web Components & Polymer
5. The Future of jQuery Plugins - A Web Components Story
View 2014 Open-Source To-Do List
1. Release AMDClean.js v0.4.0:
a. Remove all `require` methods that contain empty function declarations
b. Implement Gulp.js as the build system
2. Create Gulp Plugins:
a. Jasmine-Node
3. Release DownloadBuilder.js v0.8.0:
a. Support Require.js build configurations with the r.js web builder
b. Support built-in minification with the uglify.js web minifier
@focusaurus
focusaurus / ep_app.js
Created Jun 14, 2013
Example of how a main express app can mount sub-applications on a mount point with app.use('/mount-point', subapp); If you GET /, you'll see the main_app's '/' response. If you GET /ep_app, you'll see the ep_app's '/' response.
View ep_app.js
var express = require("express");
var app = express();
app.get('/', function (req, res) {
res.send("This is the '/' route in ep_app");
});
module.exports = app;
@gfranko
gfranko / app.js
Created Apr 4, 2013
Method to check if an element is visible. Detects if another element is absolutely positioned on top of it. Should work in IE9+, Firefox 3+, Chrome, and Safari.
View app.js
isVisible(document.getElementById('at-follow'));
@SlexAxton
SlexAxton / .zshrc
Last active Jan 6, 2020
My gif workflow
View .zshrc
gifify() {
if [[ -n "$1" ]]; then
if [[ $2 == '--good' ]]; then
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif
rm out-static*.png
else
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif
fi
else
You can’t perform that action at this time.