⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
//SASS/COMPASS formatting i would like to have for organizational purpose. | |
#dashboard-content { | |
/*rule:value;*/ | |
&.my-account-v2 { | |
/*rule:value;*/ | |
.page { | |
/*rule:value;*/ | |
.inner { | |
/*rule: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
# WEBRick server code | |
# - reading file specified per path, servlet then dynamically loads file and erb interprets the code inside of the .rhtml. | |
require 'webrick' | |
include WEBrick | |
require 'erb' | |
WEBrick::HTTPUtils::DefaultMimeTypes['rhtml'] = 'text/html' |
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
# webrick.rb | |
require 'webrick' | |
WEBrick::HTTPUtils::DefaultMimeTypes['rhtml'] = 'text/html' | |
server = WEBrick::HTTPServer.new :Port => 3000, :DocumentRoot => Dir.pwd | |
trap 'INT' do server.shutdown end | |
server.start |
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://localhost:4567/ | |
require 'rubygems' | |
require 'sinatra' | |
get("/*.rb") do | |
`ruby #{request.path_info.slice(1..-1)}` | |
end |
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
# Project Folder Stracture | |
# =============================== | |
/mirteam-site/config.ru | |
/mirteam-site/favicon.ico | |
/mirteam-site/mirteam-sinatra-app.rb | |
/mirteam-site/README.markdown | |
# config.ru |
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
var serverSearchField = $("#txtSearchServer"); | |
var listServers = []; | |
serverSearchField.autocomplete({ | |
source: listServers | |
}); | |
serverSearchField.keyup(function (event) { | |
$.ajax({ | |
url: 'edit/EditService.svc/SearchServers', |
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
var max = 128, | |
maxLength = max.toString().length > 1 ? max.toString().length : 2, | |
maxRoundedUp = Math.ceil(max/Math.pow(10,maxLength) * 10) * Math.pow(10,maxLength-1); |
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
// Create registry | |
// order is wrong | |
$routeProvider | |
.when('/create', {templateUrl: 'partials/guide/create-registry.html', controller: 'create-registry'}) | |
.when('/create/:type', {templateUrl: 'partials/guide/create-registry.html', controller: 'create-registry'}) | |
.otherwise({redirectTo: '/create'}); | |
// should be | |
$routeProvider | |
.when('/create/:type', {templateUrl: 'partials/guide/create-registry.html', controller: 'create-registry'}) |
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
{ | |
"use_simple_full_screen": false, | |
// calculates indentation automatically when pressing enter | |
"auto_indent": true, | |
// sets the colors used within the text area (default) | |
// see https://github.com/olivierlacan/monokaim to download | |
// the customized Monokai I use. | |
"color_scheme": "Packages/Color Scheme - Default/Monokaim.tmTheme", |
OlderNewer