Skip to content

Instantly share code, notes, and snippets.

@squanto
squanto / cloudSettings
Last active Mar 16, 2021
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2021-03-16T20:27:53.841Z","extensionVersion":"v3.4.3"}
@squanto
squanto / action-cable.bash
Last active Jul 4, 2016
action-cable tutorial
View action-cable.bash
rails --version # => Rails 5.0.0
rails new slack --database=postgresql --skip-test --skip-spring
View string_algorithms.rb
require 'rspec'
describe 'Inspector' do
describe '.uniq?' do
it 'works for a unique string' do
expect(Inspector.uniq?('abc')).to be true
end
it 'works for a repeating string' do
expect(Inspector.uniq?('abcabc')).to be false
@squanto
squanto / gist:4717638
Created Feb 5, 2013
Why Rudy's gists were breaking.
View gist:4717638
<!-- Does Not Work -->
<script src="https://gist.github.com/2191625.js?file=UIViewController_TourGuide.h"></script>
<!-- Does Work. Note Rudy's username -->
<!-- <script src="https://gist.github.com/rudyjahchan/2191625.js?file=UIViewController_TourGuide.h"></script> -->