sudo useradd -G 1000 user
mkdir /home/user
# java and sdk tools should be on system path | |
# it needs zipalign and jarsigner tools | |
# http://developer.android.com/tools/publishing/app-signing.html | |
from subprocess import call | |
keyPass = "" | |
storepass = "" | |
alias = "" | |
keyStorePath = "" |
These are some of my most used keyboard short cuts
Syntax aware selection in the editor selects a word at the caret and then selects expanding areas of the source code. For example, it may select a method name, then the expression that calls this method, then the whole statement, then the containing block, etc.: Ctrl+W
Basic Code Completion, to complete methods, keywords etc.: Ctrl+Space
Go to Declaration. Use this to navigate to the declaration of a class, method or variable used somewhere in the code: Ctrl+B
Introduce Variable Refactoring, to create a variable from an expression. This expression may even be incomplete or contain errors. Since version 8, IDEA intelligently selects a likely expression when no text is selected: Ctrl+Alt+V
In eclipse create configuration for project. With Main class name. |
import urllib2 | |
fs = open("../satish.txt","r") | |
for line in fs: | |
wfile = urllib2.urlopen(line) | |
fileName = line.split("/")[4] | |
fileName = fileName.replace("\n","") | |
output = open("images/"+fileName,'wb') | |
output.write(wfile.read()) | |
output.close() |
{ | |
// If the indent level of a multi-line selection should be aligned | |
"align_indent": true, | |
// If indentation is done via tabs, set this to true to also align | |
// mid-line characters via tabs. This may cause alignment issues when | |
// viewing the file in an editor with different tab width settings. This | |
// will also cause multi-character operators to be left-aligned to the | |
// first character in the operator instead of the character from the | |
// "alignment_chars" setting. |
import sublime, sublime_plugin | |
class LineCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
s = self.view.sel() | |
for region in s: | |
if not region.empty(): | |
selection = self.view.substr(region) | |
selection_mod = selection.replace('\n', ' ').replace('\r', '') |
(by @andrestaltz)
So you're curious in learning this new thing called (Functional) Reactive Programming (FRP).
Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:
Rx.Observable.prototype.flatMapLatest(selector, [thisArg])
Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.