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 |
google.com |
yahoo.com |
{ echo -ne "HTTP/1.0 200 OK\r\n\r\n"; cat some.file; } | nc -l 8080 |
url = URI.parse('https://api.xyz.com/v1/method?auth_token=adjfsdjfsdflsd') | |
req = Net::HTTP::Get.new(url.path) | |
response = Net::HTTP.start(url.host, use_ssl: true) do |http| | |
http.get url.request_uri | |
end |
NSString *twitterReqUrl = @"http://api.twitter.com/1/statuses/user_timeline.atom?screen_name=hardikr"; | |
NSString *resp = [self makeRestCall:twitterReqUrl]; |
CTCoreMessage *msg = [[CTCoreMessage alloc] init]; | |
CTCoreAddress *from = [[CTCoreAddress alloc] initWithName:@"Hardik Ruparel" email:@"####@gmail.com"]; | |
[msg setTo:[NSSet setWithObject:from]]; | |
[msg setFrom:[NSSet setWithObject:from]]; | |
NSLog(@"%@",[NSSet setWithObject:@"####@gmail.com"]); | |
[msg setBody:@"Testing Body"]; | |
[msg setSubject:@"dshjksdsd"]; | |
mkdir -p $HOME/easyenc/$1 | |
open /Users/sai/Library/Developer/Xcode/DerivedData/EasyEnc-ahcijzhfiqmlflaaoouiwxbrrkjb/Build/Products/Debug/EasyEnc.app --args -e $1 $HOME/easyenc/$1 | |
sleep 4 | |
open $HOME/easyenc/$1 |
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 |
# Question: | |
# You are given an array A[1..N] and a number of queries of the form (L,H). | |
# For each query, compute the number of unique elements in the array A between indices L and H inclusive. | |
# That is, you need to count the number of elements which occur exactly once in the index range [L..H]. | |
from collections import Counter | |
arr_size = raw_input() | |
arr = [] |
#!/usr/bin/env python | |
import pprint | |
import string | |
import cPickle as pickle | |
import sys | |
from nltk.corpus import wordnet as wn | |
#pretty print |