I hereby claim:
- I am martin-brennan on github.
- I am martin_discourse (https://keybase.io/martin_discourse) on keybase.
- I have a public key ASBIAbxvLjz2RMqPlDoygglDyUtgZA9-I-a2-kutiBDLuwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<% if form.errors.full_messages.length.positive? %> | |
<ul> | |
<% form.errors.full_messages.each do |message| %> | |
<li><%= message %></li> | |
<% end %> | |
</ul> | |
<% end %> |
angular.module('app', []); | |
angular.module('app').controller('HomeController', HomeController); | |
angular.module('app').controller('SubController', SubController); | |
HomeController.$inject = ['$scope', '$rootScope']; | |
SubController.$inject = ['$scope']; | |
function HomeController($scope, $rootScope) { | |
$scope.$on('globalEvent', runGlobalLog); |
<dict> | |
<key>name</key> | |
<string>Super this (JavaScript)</string> | |
<key>scope</key> | |
<string>source.js variable.language.js</string> | |
<key>settings</key> | |
<dict> | |
<key>fontStyle</key> | |
<string>bold italic</string> | |
<key>foreground</key> |
gulp.task('startServer', function () { | |
// restart the server | |
gulp.src('.') | |
.pipe(webserver({ | |
livereload: true, | |
directoryListing: false, | |
open: true | |
})); | |
}); |
cd %PROGRAMFILES%IIS Express | |
appcmd set config -section:urlCompression /doDynamicCompression:true | |
appcmd set config /section:staticContent /+[fileExtension='.json',mimeType='application/json'] | |
appcmd.exe set config -section:system.webServer/httpCompression /+"dynamicTypes.[mimeType='application/json',enabled='True']" /commit:apphost |
spec = Gem::Specification.find_by_name("rain-doc") | |
FileUtils.cp_r spec.gem_dir + '/templates/css/.', './rain_out/css' |
method_option :log_parse, aliases: "--lp", desc: "Show the output of each line parse." | |
method_option :parse_signatures, aliases: "--s", desc: "Parse method and class documentation too. Defaults to false." |
path = __FILE__ | |
while File.symlink?(path) | |
path = File.expand_path(File.readlink(path), File.dirname(path)) | |
end | |
$:.unshift(File.join(File.dirname(File.expand_path(path)), '..', 'lib')) |
require 'erb' | |
require 'ostruct' | |
opts = OpenStruct.new({ | |
first_name: "Martin", | |
last_name: "Brennan" | |
}) | |
# load the erb template. 'Hello <%= first_name %> <%= last_name %>.' | |
template = File.read('template.erb') |