react + redux + RR
It uses https://gist.github.com/iNikNik/3c1b870f63dc0de67c38 for stores and actions.
1) create redux
const redux = createRedux(state);
2) get requireAccess func => bindCheckAuth to redux
import idaapi | |
idaapi.CompileLine('static deobfuscate() { RunPythonStatement("deobfuscate()"); }') | |
AddHotkey("Alt-N", "deobfuscate") | |
repl_pairs = { | |
"e8 3a 00 00 00" : "b8 01 00 00 00", # mov eax, 1 | |
} | |
def chunk(string, length): |
# Command line utility to send attachments to your kindle | |
# It supports sending a PDF in both regular form and with the convert option | |
# and sending to the regular (@kindle.com) or free Kindle mail (@free.kindle.com) | |
# The only argument it has is the name of the file to send. It will detect if | |
# it is a pdf and treat it accordingly. | |
## Preferences | |
# If true, send one version with pdf as-is, another with 'convert' subject | |
# else, just send the pdf version |
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
react + redux + RR
It uses https://gist.github.com/iNikNik/3c1b870f63dc0de67c38 for stores and actions.
1) create redux
const redux = createRedux(state);
2) get requireAccess func => bindCheckAuth to redux
def reply(%Nadia.Model.Update{ | |
message: %Nadia.Model.Message{ | |
chat: %Nadia.Model.Chat{id: chat_id, type: type}, | |
text: text}}) | |
do |
Freelance (кто-то менеджит заказчиков) | |
http://gradberry.com/ - проверяют код на входе как-то | |
http://www.toptal.com/ - тесты codility и собеседование на английском | |
https://triplebyte.com/ - "show you can code, interview" | |
http://dreamlance.io/ - "hand-picked freelancers" | |
https://gun.io/ - проверяют GitHub, потом пускают | |
http://www.broadwaylab.com/leads - за $50/m еженедельно шлёт приличных клиентов | |
http://wearehirable.com/ - пока beta, тоже выборочно будут брать | |
http://onsite.io/ - "brilliant freelancers", как будто бы design-oriented |
Steps to install and run PostgreSQL 9.2 using Homebrew (Mac OS X) | |
(if you aren't using version 9.1.5, change line 6 with the correct version) | |
1. launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist | |
2. mv /usr/local/var/postgres /usr/local/var/postgres91 | |
3. brew update | |
4. brew upgrade postgresql | |
5. initdb /usr/local/var/postgres -E utf8 | |
6. pg_upgrade -b /usr/local/Cellar/postgresql/9.1.5/bin -B /usr/local/Cellar/postgresql/9.2.0/bin -d /usr/local/var/postgres91 -D /usr/local/var/postgres | |
7. cp /usr/local/Cellar/postgresql/9.2.0/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/ |
defmodule Test do | |
def run do | |
Enum.each(1..50, &simulated_bottleneck/1) | |
end | |
defp simulated_bottleneck(x) do | |
:timer.sleep(x) | |
end | |
end |
In addition to Kevin Conner's answer: block arguments do not support the same semantics as method arguments. You cannot define default arguments or block arguments.
This is only fixed in Ruby 1.9 with the new alternative "stabby lambda" syntax which supports full method argument semantics.
http://stackoverflow.com/questions/89650/how-do-you-pass-arguments-to-define-method#answer-109379
Example:
# Works