gdjumps to the definition of a type, variableC-tjumps you back to where you where.- Use
<tab>to autocomplete snippets in insert mode. Example snippets. :Aopen alternate (i.e. test for current file). Also:AHand:AVfor horizontal and vertical splits.gtwill run the tests for the current file.:GoDeclsDirwill show all functions in current directory.Kopen GoDoc for symbol under the cursor.<leader>iover a function or method name will show function information.cwill run GoCoverage for the current file.
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
| redis_client.set('ciaran_key', [:hi, :there].to_json) | |
| >> OK | |
| JSON.parse(redis_client.get('ciaran_key')) | |
| >> ["hi", "there"] | |
| redis_client.del('ciaran_key') | |
| >> 1 |
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
| rvm 1.9.3-p327; rvm gemset use ciaran_gemset |
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
| # For advice on how to change settings please see | |
| # http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html | |
| # *** DO NOT EDIT THIS FILE. It's a template which will be copied to the | |
| # *** default location during install, and will be replaced if you | |
| # *** upgrade to a newer version of MySQL. | |
| [mysqld] | |
| # Remove leading # and set to the amount of RAM for the most important data | |
| # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. |
Credit to: https://gist.github.com/lucasfais/1207002
go to file | ⌘T
go to project | ⌘⌃P
go to methods | ⌘R
go to line | ⌃G
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
| ember-movies master$ git push heroku master | |
| Counting objects: 384, done. | |
| Delta compression using up to 4 threads. | |
| Compressing objects: 100% (346/346), done. | |
| Writing objects: 100% (384/384), 728.08 KiB | 329 KiB/s, done. | |
| Total 384 (delta 150), reused 0 (delta 0) | |
| -----> Fetching custom git buildpack... done | |
| -----> Lineman app detected |
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
| (defn cat-many [out files] | |
| (map #(with-open [o (io/output-stream out)] | |
| (io/copy (io/file %) o)) files)) | |
| (cat-many "/tmp/ciaran.mp3" '("/tmp/test-recording-1.mp3" "/tmp/test-recording-2.mp3")) |
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
| package main | |
| import ( | |
| "fmt" | |
| "math" | |
| ) | |
| func Sqrt(x float64) (z float64) { | |
| z = 1.0 | |
| for i := 0; i < 100000000; i++ { |