Skip to content

Instantly share code, notes, and snippets.

@andreslucena
andreslucena / install_decidim.bash
Last active January 18, 2018 09:14
Magic installation script for Decidim on Ubuntu 16.04 LTS and macos sierra 10.2
#!/usr/bin/env bash
#
# Decidim installation script on Ubuntu 16.04 LTS and macos sierra 10.2
#
# This is a BETA and as such you should be aware that this could break your environment (if you have any)
# This will install rbenv, postgresql, nodejs and install decidim on this directory
# It'll take 15 minutes depending on your network connection
#
set -e
{
"type": "FeatureCollection",
"features": [...],
"legend": {
"title": "Population Quantiles",
"symbols": [
{"from": 0, "to": 10, "color": "ffffff", "symbol": "square"},
{"from": 10, "to": 50, "color": "cffff1", "symbol": "square"},
{"from": 50, "to": 80, "color": "afff33", "symbol": "square"}
]
@digitaljhelms
digitaljhelms / api.json
Created July 13, 2012 23:44
A JSON formatted response containing all posts from a Jekyll blog
[
{
"homepage": "http://digitaljhelms.github.com",
"name": "digitaljhelms",
"description": "finally blogging...",
"author": "Jeremy Helms",
"post": {
"url": "http://digitaljhelms.github.com/howto/creating-a-branch-with-no-parents-or-history",
"slug": "creating-a-branch-with-no-parents-or-history",
"title": "Create a Git Branch without Parents or History",
@rgo
rgo / gist:2025990
Created March 13, 2012 01:16
Gnome-shell dual monitor separate workspaces
# By default the behavior is:
# Primary monitor work as always and second monitor only have one and fixed workspace
# I.e. you change to next workspace, primary monitor change to this workspace and second monitor remain as is.
# The desired behaviour is:
# Primary monitor and secondary monitor are linked workspace.
# I.e. you change to next workspace, primary monitor change to this workspace and second monitor too.
$ gconf-editor
# Look for /desktop/gnome/shell/windows/workspaces_only_on_primary and set to false
@fairchild
fairchild / Gemfile
Created December 7, 2011 09:58
An example sinatra omniauth client app
source :rubygems
gem 'sinatra'
gem 'json'
gem 'omniauth'
gem 'omniauth-oauth2'
gem 'omniauth-github'
# gem 'omniauth-att', :path => File.expand_path("./../../omniauth-att", __FILE__)
gem 'thin'
@paulirish
paulirish / data-markdown.user.js
Last active February 6, 2024 10:41
*[data-markdown] - use markdown, sometimes, in your HTML
// ==UserScript==
// @name Use Markdown, sometimes, in your HTML.
// @author Paul Irish <http://paulirish.com/>
// @link http://git.io/data-markdown
// @match *
// ==/UserScript==
// If you're not using this as a userscript just delete from this line up. It's cool, homey.
@jpzwarte
jpzwarte / gist:281250
Created January 19, 2010 20:14
Splitpane using jQuery UI
$('.splitter').draggable({
axis: 'x',
containment: '#content',
distance: 0,
drag: function(event, ui) {
var width = $('#content').width();
$('#content .leftpane').css({ width: ui.position.left + 'px' });
$('#content .rightpane').css({
left: ui.position.left + 1 + 'px',
width: (width - ui.position.left + 1) + 'px'