This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"auto_close_tags": true, | |
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme", | |
"create_window_at_startup": false, | |
"font_face": "Menlo", | |
"font_size": 12, | |
"highlight_line": true, | |
"ignored_packages": | |
[ | |
"Vintage", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
Dir.glob("~/Projects/**").each do |dir| | |
next unless File.directory?(dir) | |
is_hg = File.directory?(File.join(dir, '.hg')) | |
is_git = File.directory?(File.join(dir, '.git')) | |
puts "Fixing " + File.basename(dir) | |
Dir.chdir(dir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
$VEBOSE = nil | |
class String | |
def colourise(color_code) | |
"\e[#{color_code}m#{self}\e[0m" | |
end | |
def red |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See: http://en.wikipedia.org/wiki/Tput | |
BOLD="$(tput bold)" | |
RED="$(tput setaf 1)" | |
GREEN="$(tput setaf 2)" | |
YELLOW="$(tput setaf 3)" | |
BLUE="$(tput setaf 4)" | |
MAGENTA="$(tput setaf 5)" | |
CYAN="$(tput setaf 6)" | |
WHITE="$(tput setaf 7)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# Box. | |
config.vm.box = "trusty64" | |
config.vm.network :private_network, ip: "192.168.33.100" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Demo: http://jsfiddle.net/o38gdsfd/6/ --> | |
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<title>React JS - Quantity Input</title> | |
<style> | |
.component-quantity-input { | |
display: block; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// See Error Handling in PHP: https://nomadphp.com/2015/02/25/nomadphp-2015-02-us-lt2/# | |
$display = function ($status, $headers = array(), $content = '') { | |
http_response_code($status); | |
foreach ($headers as $key => $value) { | |
header($key . ': ' . $value); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Google Chrome Search Engines | |
---------------------------- | |
Settings > Manage Search Engines | |
DuckDuckGo Google (ddgg) | |
https://duckduckgo.com/?q=!g+%s | |
DuckDuckGo Similar (ddgs) | |
https://duckduckgo.com/?q=similar+sites+to+%s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://symfony.com/components | |
var components = []; | |
$('.components-list tr').each(function() { | |
var name = $.trim($(this).find('td.name').text()), | |
link = 'http://' + document.domain + $(this).find('td.name a').attr('href'), | |
desc = $.trim($(this).find('td:eq(1)').text()); | |
if (name && link && desc) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Update Ubuntu | |
sudo apt-get install build-essential | |
sudo apt-get update | |
sudo apt-get upgrade | |
# Version Control | |
sudo apt-get install git mercurial subversion | |
# Mobile Shell (MOSH) | |
# See: http://mosh.mit.edu/ |