⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains 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
using System; | |
using System.IO; | |
using System.Security.Cryptography; | |
using System.Text; | |
using System.Xml; | |
using System.Xml.Serialization; | |
namespace ClassLibrary1 | |
{ | |
public class SignedXmlSerializer<T> : XmlSerializer where T : Signable |
This file contains 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
#light | |
module Roman | |
open System | |
type RomanNumber ={ | |
num:string; | |
decimal_num:int; | |
left_bound:int; | |
right_bound:int; | |
} | |
This file contains 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 "activerecord" | |
class ActiveRecord::Base | |
class <<self | |
def hidden_columns(*hidden) | |
write_inheritable_array("hidden_column", hidden.collect(&:to_s)) | |
end | |
def columns_hidden | |
read_inheritable_attribute("hidden_column") || [] |
This file contains 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
""" | |
Each new term in the Fibonacci sequence is generated by adding | |
the previous two terms. By starting with 1 and 2, the first | |
10 terms will be: | |
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... | |
By considering the terms in the Fibonacci sequence | |
whose values do not exceed four million, find the sum | |
of the even-valued terms. |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Net; | |
using NUnit.Framework; | |
namespace Songkick | |
{ | |
[TestFixture] | |
public class Scraper | |
{ |
This file contains 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
[Test] | |
public void Foo() { | |
IHttpEndpoint httpEndpoint = new HttpEndpoint() | |
.At(new Uri("Http://localhost:8080/api")) | |
.WithNewContext(); | |
httpEndpoint | |
.Stub(x => x.Get("/")) | |
.Return("Index") | |
.OK(); |
This file contains 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
--merge --result=%merged %mine %base %theirs --title1="Mine : %yname" --title2="Merged: %mname" --title3="Theirs : %tname" |
This file contains 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
<system.net> | |
<defaultProxy > | |
<proxy proxyaddress="http://localhost:8888" /> | |
</defaultProxy> | |
</system.net> |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
OlderNewer