A fork of the popular open-source contract for web designers and developers by Stuff & Nonsense, reworded for developers
- Originally published: 05/02/2014
- Original post
Between us [company name] and you [customer name]
Twig coding standards | |
https://www.drupal.org/node/1823416 | |
Filters - Modifying Variables In Twig Templates | |
https://www.drupal.org/node/2357633 | |
{% for i, value in content.field_app_prod_toggle_products %} | |
{% if node.field_app_prod_toggle_products[i].entity %} | |
{% if i == 0 %} |
Example infrastructure outage incident report | |
Friday, May 13, 2077 | |
By the Example Security Team | |
Earlier this week we experienced an outage in our API infrastructure. Today we’re providing an incident report that details the nature of the outage and our response. | |
The following is the incident report for the Example Security outage that occurred on April 30, 2077. We understand this service issue has impacted our valued developers and users, and we apologize to everyone who was affected. |
Between us [company name] and you [customer name]
import urllib2,os; pf='Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler( ))); open( os.path.join( ipp, pf), 'wb' ).write( urllib2.urlopen( 'http://sublime.wbond.net/' +pf.replace( ' ','%20' )).read()); print( 'Please restart Sublime Text to finish installation')
From here on out, use Package Control to install everything. ⌘
+Shift
+P
, then type Install
to get a list of installable packages you can 'livesearch through. After installing plugins, they should be running.
// Initialize the Sass variables and partials used in this project. | |
// Set the legacy IE support variables. We override the default values set by | |
// the compass/support partial, but let styles-ie8.scss override these values. | |
$legacy-support-for-ie6 : false !default; | |
$legacy-support-for-ie7 : false !default; // Note the use of !default. | |
$legacy-support-for-ie8 : false !default; | |
// Partials to be shared with all .scss files. |
-- adapted from: https://culturedcode.com/forums/read.php?7,30174,30597 | |
(* | |
save as 'stay open' Application and launch at startup | |
to run in background, change info.plist file to include | |
<key>LSBackgroundOnly</key> | |
<true/> | |
*) |
I use sublime text 2 (with vintage mode) to do front-end centric Drupal development, and some Python and Node.js on the side. This works in conjunction with my Dotfiles to make me a better, happier dev.
I love ST2 and use it everyday, but there are still tons of great plugins that I don't know about. Feel free to comment with any suggestions.
Happy Hacking!
-Nick
-- Open current Safari URL in Chrome | |
-- | |
-- Forked from https://gist.github.com/3153606 | |
-- which was forked in turn from https://gist.github.com/3151932 | |
tell application "System Events" | |
-- Check if Chrome is running | |
set chromeRunning to ((name of processes) contains "Google Chrome") | |
end tell |
{ | |
// Sets the colors used within the text area | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
// Note that the font_face and font_size are overriden in the platform | |
// specific settings file, for example, "Base File (Linux).sublime-settings". | |
// Because of this, setting them here will have no effect: you must set them | |
// in your User File Preferences. | |
"font_face": "Monaco", | |
"font_size": 12, |