Skip to content

Instantly share code, notes, and snippets.

View ccharlton's full-sized avatar
🎯
Focusing

Chris Charlton ccharlton

🎯
Focusing
View GitHub Profile
@anthonyholmes
anthonyholmes / bootstrap-sass-mixin-cheatsheet.scss
Created October 10, 2014 08:13
Bootstrap Sass Mixin Cheatsheet
// Alerts
@include alert-variant($background, $border, $text-color);
// Background Variant
@include bg-variant($parent, $color);
// Border Radius
@include border-top-radius($radius);
@include border-right-radius($radius);
@include border-bottom-radius($radius);
@xbeta
xbeta / README.md
Last active May 8, 2025 19:40
Macbook Pro Bluetooth + WiFi 2.4GHz interference fix for Mavericks
anonymous
anonymous / Default.sublime-theme
Created September 5, 2014 22:13
Sublime Text 2 Default theme file
[
{
"class": "label_control",
"color": [255, 255, 255],
"shadow_color": [24, 24, 24],
"shadow_offset": [0, -1]
},
{
"class": "button_control",
"content_margin": [6, 5, 6, 6],
#!/bin/bash
ENV='dev'
SITE='XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'
while [ 1 ]
do
rsync --partial -rlvz --size-only --ipv4 --progress -e 'ssh -p 2222' ./files/* $ENV.$SITE@appserver.$ENV.$SITE.drush.in:files/
if [ "$?" = "0" ] ; then
echo "rsync completed normally"
exit
@silvenon
silvenon / generator-webapp-with-compass.diff
Last active September 24, 2015 19:38
Changes needed in order to implement Compass back to Yeoman's generator-webapp.
-sass: {
- files: ['<%= config.app %>/styles/{,*/}*.{scss,sass}'],
- tasks: ['sass:server', 'autoprefixer']
-}
+compass: {
+ files: ['<%= config.app %>/styles/{,*/}*.{scss,sass}'],
+ tasks: ['compass:server', 'autoprefixer']
+}
...
@dimsemenov
dimsemenov / vcl-regex-cheat-sheet
Last active March 12, 2022 19:01
Regular expression cheat sheet for Varnish (.vcl). Examples of vcl regexp. Found here http://kly.no/varnish/regex.txt (by Kristian Lyngstøl)
Regular expression cheat sheet for Varnish
Varnish regular expressions are NOT case sensitive. Varnish uses POSIX
regular expressions, for a complete guide, see: "man 7 regex"
Basic matching:
req.url ~ "searchterm"
True if req.url contains "searchterm" anywhere.
req.url == "searchterm"
@ndeet
ndeet / MYTHEME.info
Last active February 8, 2018 14:41
Drupal 7, Panels 3.3+ Pane Style Plugin
; Register Style Plugin directory
plugins[panels][styles] = panels/styles
@jbmoelker
jbmoelker / grunt-prompt-builder.js
Last active January 3, 2016 00:39
The Grunt Task Wizard prompts user all available grunt tasks, and asks the user for optional arguments to run the task with. When prompt closes `task-wizard:run-task` is executed, which runs the selected task with the given arguments.This way users don't need to know tasks by heart, just type: `grunt task-wizard` to get started. To make it even …
var grunt = require('grunt');
/**
* Prompt, utility to configure and run grunt-prompt.
* @see https://github.com/dylang/grunt-prompt
*
* @example
* var prompt = require('prompt');
* prompt('create-component')
* .addQuestion({
@bingomanatee
bingomanatee / leapToUnity.js
Last active December 27, 2015 12:29
talking between Leap.js and Unity Web
(function (window) {
var controller = window.controller = new Leap.Controller();
console.log('controller made', controller);
controller.on('error', function (err) {
console.log('leap error: ', err);
})
controller.on('connect', function () {
console.log('connection made');
});
var errr = false;
@bingomanatee
bingomanatee / LeapManager.cs
Created November 5, 2013 20:29
the LeapManaager class
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class LeapManagerWeb : MonoBehaviour
{
public GameObject cursor;
private static LeapManagerWeb manager;
private static LightedPodium lockedPodium = null;
public GameObject ceilingLight, fillLight, topLight;