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
# Config | |
# MacOS: Sequoia 15.6.1 (24G90) | |
# GitLab Development Kit: 0.2.19 (e1fef3f11) | |
# GitLab: 17.5.0 | |
### GitLab Development Kit START ### | |
# WITHOUT_BUILD_ID=1 - Reuired for M1/M2 to resovle configuration issue in Worhorse | |
alias gdk-fast-spec='GITLAB_TEST_EAGER_LOAD=1 ENABLE_SPRING=1 WITHOUT_BUILD_ID=1 bin/rspec' |
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[ | |
require 'benchmark'; puts(">> #{File.basename(__FILE__)}:#{__LINE__} - %0.5f" % Benchmark.realtime { ${1:this} }) | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>bench</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.ruby</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
<snippet> | |
<content><![CDATA[ | |
require 'pry'; binding.pry | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>pry</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.ruby</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
<snippet> | |
<content><![CDATA[ | |
puts ">>>>>> #{File.basename(__FILE__)}:#{__LINE__} <<<<<<" | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>puts</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.ruby</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
# frozen_string_literal: true | |
RSpec::Matchers.define :include_json do |expected| | |
match do |response| | |
values_match? expectation, actual | |
end | |
diffable | |
# TODO: Make more informative failure massage with difference between actual and expected |
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/bash | |
alias ln="ln -v" | |
alias mkdir="mkdir -p" | |
alias ...="../.." | |
alias l="ls" | |
alias ll="ls -al" | |
alias lh="ls -Alh" | |
# alias -g G="| grep" | |
# alias -g M="| less" |
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
require 'benchmark' | |
uri = URI('http://stackoverflow.com/questions/30899019/') | |
n = 10 | |
require 'net/http' | |
puts | |
puts "Net::HTTP:" | |
Benchmark.bm do |b| |
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
Here is a list of scopes to use in Sublime Text 2 snippets - | |
ActionScript: source.actionscript.2 | |
AppleScript: source.applescript | |
ASP: source.asp | |
Batch FIle: source.dosbatch | |
C#: source.cs | |
C++: source.c++ | |
Clojure: source.clojure | |
CoffeeScript: source.coffee |
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
require 'active_record' | |
ActiveRecord::Base.establish_connection adapter: 'sqlite3', database: ':memory:' | |
ActiveRecord::Schema.define do | |
self.verbose = false | |
create_table :settings do |t| | |
t.string :name | |
t.integer :value |
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
$bootstrap-sass-asset-helper: false !default; | |
// | |
// Variables | |
// -------------------------------------------------- | |
//== Colors | |
// | |
//## Gray and brand colors for use across Bootstrap. |
NewerOlder