Skip to content

Instantly share code, notes, and snippets.

@hibri
hibri / gist:2973316
Created June 22, 2012 15:05 — forked from axelav/gist:1839777
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@hibri
hibri / .gitignore
Last active December 14, 2015 13:09
_ReSharper*
*.user
*.suo
*.pidb
*.userprefs
obj
bin
Bin
logs
ndepend
"a" slist => {1,2};
"b" slist => {58, a[1]};
module FunctionalCheckout.Tests
open NUnit.Framework
open FsUnit
let discount(count:int, price:int, discountTrigger:int, discount:int) =
match count with
| _ when count >= discountTrigger -> (price * count) - (discount * (count / discountTrigger))
| x -> (price * count)
let price(item:char, count:int) =
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
bower_concat: {
all: {
dest: 'public/javascripts/dist/_bower.js',
cssDest: 'public/stylesheets/_bower.css',
bowerOptions: {
relative: false

Keybase proof

I hereby claim:

  • I am hibri on github.
  • I am hibri (https://keybase.io/hibri) on keybase.
  • I have a public key whose fingerprint is DAFD 811D 5E29 3DB6 B3D0 4562 2903 074E DF5C AAB6

To claim this, I am signing this object:

choco install google-chrome-x64
choco install sublimetext3
choco install console2
choco install git
choco install poshgit
choco install github
choco install boxstarter
choco install IIS-WebServerRole -source windowsfeatures
choco install fiddler4
choco install 7zip
{
"widgets" : [
{"name" : "Widget 1"},
{"name" : "Widget 2"}
]
}
@hibri
hibri / Dockerfile
Last active August 29, 2015 14:22
Redis Dockerfile
FROM ubuntu:15.04
RUN apt-get update
RUN apt-get install -y build-essential
RUN apt-get install -y zip unzip
RUN apt-get install -y curl
RUN apt-get install -y wget
RUN wget http://download.redis.io/redis-stable.tar.gz
RUN tar xzf redis-stable.tar.gz
@hibri
hibri / test.cs
Created July 25, 2016 17:39
HttpMock PR
[Test]
public void Should_match_any_request_that_was_made_with_specific_query_params()
{
var queryParams = new Dictionary<string, string> { { "a", "a" } };
var stubHttp = HttpMockRepository.At(_hostUrl);
stubHttp.Stub(x => x.Get("/endpoint/handler"))
.Return("OK")
.OK();