This file contains hidden or 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
var deferred = $q.defer(); | |
$timeout(function() { | |
deferred.resolve('Hello!'); | |
}, 1000); | |
return deferred.promise; |
This file contains hidden or 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
log_format main '{\nrequest: "$request @ [$time_local]", \nremote_addr: "$remote_addr", \nremote_user: "$remote_user",' | |
'\nstatus: "$status", \nbody_bytes_sent: "$body_bytes_sent", \nhttp_referer: "$http_referer", ' | |
'\nhttp_user_agent: "$http_user_agent", \nhttp_x_forwarded_for: "$http_x_forwarded_for"\n},'; |
This file contains hidden or 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
{ | |
"bracket_styles": { | |
"default": { | |
"icon": "dot", | |
// BH1's original default color for reference | |
// "color": "entity.name.class", | |
"color": "brackethighlighter.default", | |
"style": "highlight" |
This file contains hidden or 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
<!--appended to default to work with bh_core.sublime-settings brackethighlighter.default style--> | |
<dict> | |
<key>name</key> | |
<string>Bracket Tag</string> | |
<key>scope</key> | |
<string>brackethighlighter.default</string> | |
<key>settings</key> | |
<dict> | |
<key>background</key> | |
<string>#351501</string> |
This file contains hidden or 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
#!/bin/sh | |
APP_NAME=$1 | |
APPSSLPATH=/usr/local/etc/nginx/ssl/$APP_NAME; | |
sudo mkdir -p $APPSSLPATH && cd $APPSSLPATH; | |
# sudo /usr/bin/openssl req -new -key $KEY_FILEPATH -out $APPSSLPATH/$APP_NAME.csr && \ | |
sudo openssl req -new -newkey rsa:2048 -nodes -out $APP_NAME.csr -keyout $APP_NAME.key -subj "/C=US/ST=California/L=San Francisco/O=Engineering Inc./CN=$APP_NAME" && \ |
This file contains hidden or 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 | |
class featureButtonSlotActions extends BaseaButtonSlotActions { | |
/** | |
* Image association is handled by a separate action | |
* @param sfRequest $request | |
* @return mixed | |
*/ | |
public function executeImage(sfRequest $request) | |
{ |
This file contains hidden or 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
<snippet> | |
<content><![CDATA[ | |
background-color: ${1:pink}; | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>pink</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<!-- <scope>source.less</scope> --> | |
</snippet> |
This file contains hidden or 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
// Currently incomplete implementation! | |
private Boolean designFits(int[] max, int[] design) { | |
Boolean designFits = true; | |
Arrays.sort(max); | |
Arrays.sort(design); | |
int passCount = 0; | |
if(design.length <= max.length) { |
This file contains hidden or 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
# upstart play framework script | |
# thanks to: | |
# http://geeknme.wordpress.com/2009/10/15/getting-started-with-upstart-in-ubuntu/ | |
# this script will start/stop play framework | |
# place in /etc/init | |
description "start and stop the play framework" | |
version "1.0" | |
author "Brian Ross" |