One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| import getopt | |
| import re, shutil, tempfile | |
| import os | |
| import subprocess | |
| import sys | |
| # http://stackoverflow.com/questions/4427542/how-to-do-sed-like-text-replace-with-python | |
| def sed_inplace(filename, pattern, repl): | |
| ''' |
| /** | |
| * Using Operator Mono in Atom | |
| * | |
| * 1. Open up Atom Preferences. | |
| * 2. Click the “Open Config Folder” button. | |
| * 3. In the new window’s tree view on the left you should see a file called “styles.less”. Open that up. | |
| * 4. Copy and paste the CSS below into that file. As long as you have Operator Mono SSm installed you should be golden! | |
| * 5. Tweak away. | |
| * | |
| * Theme from the screenshot (http://cdn.typography.com/assets/images/blog/operator_ide2.png): |
| #!/usr/bin/env ruby | |
| # Scipt Example for Moving Reporter Entries to Airtable Rows in near-real time | |
| require 'time' | |
| require 'json' | |
| # To prevent encoding errors on OSX | |
| if RUBY_VERSION =~ /2.*.*/ | |
| Encoding.default_external = Encoding::UTF_8 | |
| Encoding.default_internal = Encoding::UTF_8 |
| # ---------------------------------- | |
| # Colors | |
| # ---------------------------------- | |
| NOCOLOR='\033[0m' | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' | |
| ORANGE='\033[0;33m' | |
| BLUE='\033[0;34m' | |
| PURPLE='\033[0;35m' | |
| CYAN='\033[0;36m' |
| <?php | |
| class WP_HTML_Compression | |
| { | |
| // Settings | |
| protected $compress_css = true; | |
| protected $compress_js = true; | |
| protected $info_comment = true; | |
| protected $remove_comments = true; | |
| // Variables |
| ################## | |
| # Privacy Settings | |
| ################## | |
| # Privacy: Let apps use my advertising ID: Disable | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0 | |
| # To Restore: | |
| #Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1 | |
| # Privacy: SmartScreen Filter for Store Apps: Disable | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0 |
| #!/bin/sh | |
| # start helium server on android device - see http://www.clockworkmod.com/carbon for more details | |
| # set -x | |
| # try normal system locations before the local binary | |
| unset adb | |
| for i in /usr/bin /usr/local/bin "$(/usr/bin/dirname $0)" | |
| do | |
| i="$i/adb" | |
| if [ -f "$i" -a -x "$i" ] |
| # PostgreSQL can be on a remote server but you'll need root privileges in Linux and superuser in PostgreSQL. | |
| # First install build tools | |
| sudo su | |
| aptitude install build-essential | |
| aptitude install postgresql-server-dev-9.4 | |
| # Clone and build the PL/pgSQL server-side debugger |
Quick little mixin to automatically vendorize properties/values that might need to be vendorized (listed in $vendor-properties and $vendor-values). Originally written for http://html5up.net/spectral.
@include vendor('transform', 'rotate(-45deg)');
@include vendor('transition', ('transform 1s ease', 'opacity 0.5s ease'));
@include vendor('display', 'flex');
@include vendor('flex-wrap', 'wrap');
@include vendor('background-image', ('linear-gradient(top, rgba(0,0,0,0.5), rgba(0,0,0,0.5))', 'url("../images/banner.jpg")'));