Skip to content

Instantly share code, notes, and snippets.

@simongcc
simongcc / config.rb
Last active April 25, 2017 04:36 — forked from yatil/config.rb
My standard config.rb for compass
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
sass_dir = "sass"
images_dir = "img"
javascripts_dir = "js"
# You can select your preferred output style
@yatil
yatil / config.rb
Created October 27, 2011 11:38
My standard config.rb for compass
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
sass_dir = "sass"
images_dir = "img"
javascripts_dir = "js"
# You can select your preferred output style
@nathansmith
nathansmith / repeat.js
Last active January 7, 2018 09:31
Handlebars.js helper to generate dummy UI.
/*
Handlebars helper to generate dummy UI.
For instance, a 10x10 table with 100 cells:
<table>
{{#repeat 10}}
<tr>
{{#repeat 10}}
<td>
#htaccess apache .htaccess file notes, last tested in Apache 2.4.26
#################
# Disable index
#################
Options -Indexes
#################
# SSI Support
#################
@simongcc
simongcc / index.php
Created January 3, 2019 12:23 — forked from johndyer/index.php
Gutenberg Shortcode Block with Live Preview
<?php
/**
* Plugin Name: JD Gutenberg Shortcode Preview
* Description: Live shortcode previews in Gutenberg
* Author: johndyer
* Version: 1.0.0
*
*/
// Exit if accessed directly.
@HalfdanJ
HalfdanJ / threejsBoilerplate.html
Last active February 7, 2020 18:18
THREE.JS Boilerplate with controls
<!doctype html>
<html>
<head>
<title>Three.js Boilerplate</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r79/three.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/stats.js/r16/Stats.min.js"></script>
@gadamc
gadamc / podio_bigdump.py
Created July 28, 2011 18:46
podio_bigdump
#!/usr/bin/env python
from pypodio2 import api
import sys, shutil, os, json
c = api.OAuthClient(sys.argv[1],sys.argv[2], sys.argv[3], sys.argv[4])
orginfo = c.transport.get(url = '/org/')
def writerawtext(filename, data):
try:
@srdjan-jcc
srdjan-jcc / wpml-ubermenu.php
Last active August 10, 2020 03:27
Ubermenu WPML menu sync
<?php
/**
* Ubermenu Multilingual
*
* @package wpml
* @author OnTheGoSystems
* @copyright 2018 OTGS
* @license GPL-2.0+
*
* @wordpress-plugin
@bgstaal
bgstaal / jQuery.clicktouch
Created May 9, 2012 07:10
Overrides bind and unbind of "click" events and adds touch event handlers where available to avoid 300ms delays on certain devices
(function ($)
{
var superBind = $.fn.bind;
var superUnbind = $.fn.unbind;
var touchHandlersKey = "clicktouchHandlers";
// override bind
$.fn.bind = function ()
{
var $window = $(window);
@johndyer
johndyer / index.php
Last active October 13, 2020 12:25
Gutenberg Shortcode Block with Live Preview
<?php
/**
* Plugin Name: JD Gutenberg Shortcode Preview
* Description: Live shortcode previews in Gutenberg
* Author: johndyer
* Version: 1.0.0
*
*/
// Exit if accessed directly.