Skip to content

Instantly share code, notes, and snippets.

@shynome
shynome / setup.sh
Last active December 13, 2017 07:37 — forked from eduwass/setup.sh
Flynn Install : Single node ( for Ubuntu 16.04 x64 @ DigitalOcean droplet )
#!/bin/bash
# This script will automatically set up a single node Flynn Cluster on your linux box
# Fresh Flynn install with domain provided by the xip.io service
# Tested with Base Image: Ubuntu 14.04 x64 @ DigitalOcean droplet
# @date 16 Nov 2015
# @author Edu Wass (eduwass at gmail com)
echo '---- START SETUP ----'
@shynome
shynome / own.js
Created March 16, 2017 03:33
fancybox
void function fancybox(){
var x = $('.fancybox')
, y = $('.fancybox-thumb')
$(document).on('click.clear','a.fancybox,a.fancybox-thumb',function(e){e.preventDefault()})
if(!$('.fancybox,.fancybox-ajax,.fancybox-thumb,.fancybox-thumb-ajax').length)return;
var deps = $.when()
var deps_thumb = $.when()
var options = {
helpers : {
thumbs : {
<!-- 1. Add latest jQuery and fancyBox files -->
<script src="//code.jquery.com/jquery-3.1.1.min.js"></script>
<link href="/path/to/jquery.fancybox.min.css" rel="stylesheet">
<script src="/path/to/jquery.fancybox.min.js"></script>
<!-- 2. Create links -->
@shynome
shynome / 0_reuse_code.js
Created March 15, 2017 02:31
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console