I hereby claim:
- I am shosanna on github.
- I am jocellyn (https://keybase.io/jocellyn) on keybase.
- I have a public key ASAvmfKu4Z2C_qH4TeanPDi8QwyX2mWn8TbdQ3J6kSojYgo
To claim this, I am signing this object:
version: '2' | |
services: | |
redis: | |
image: redis:latest | |
ports: | |
- 6379:6379 | |
# volumes: | |
# - <data_dir>/redis:/data | |
mysql: |
#!/bin/bash | |
for file in $(find . -iname setup | grep dev); do | |
dev_dir=$(dirname $file) | |
dir=$(dirname $dev_dir) | |
echo -e "\n\n\nRunning setup in $dir" | |
(cd $dir; ./dev/setup) | |
done |
I hereby claim:
To claim this, I am signing this object:
[ | |
{ | |
"date" : "2015-12-02", | |
"fatalities" : 14, | |
"location" : "California", | |
"description" : "Shooting", | |
"link" : "http://www.nytimes.com/interactive/2015/12/02/us/california-mass-shooting-san-bernardino.html" | |
}, |
I hereby claim:
To claim this, I am signing this object:
• Why are you applying for this job? (Suggested word limit: 125); I am applying because I feel very inspired of what you do and what you want to achieve. I have a bachelor degree in Sociology and Social policy, I also studied European Integration during my Master’s at Gothenburg University and all of this changed my life so that I believe in positive change in a world to be possible. I am very active citizen with my own NGO and I want to work on something, which has a deeper meaning. Also I feel that this job offers something very special, a big opportunity for only the most motivated ones, which I believe I am. I am a junior but I am confident in my IT knowledge and enthusiasm for learning and your company seems like a nice fit for me.
• What’s one idea, big or small, that you have for how advocacy organizations can use technology better? (Suggested word limit: 200) As advocacy movement you want to influence the public affairs without actually holding the power and that is hard. All you have is your voice.
# Setup | |
array = [4, 2, 7, 11, 8, 24, 1, 0, 15, 33, 19, 21, 25, 3, 3, 5] | |
# Selection sort | |
def selection_sort(a) | |
(a.length - 1).times do |outer| | |
minimum = 100000000 | |
minimum_index = -1 |
function naïve_string_search(kupka, jehla) { | |
for i ← 0 upto (kupka.length - jehla.length) { | |
j ← 0 | |
while (j < jehla.length && kupka[i + j] == jehla[j]) j += 1 | |
if j == jehla.length return i | |
} | |
return -1 | |
} |
# Insertion sort | |
def insertion_sort(a) | |
1.upto(a.length - 1) do |i| | |
x = a[i] | |
j = i - 1 | |
while j >= 0 && a[j] > x | |
a[j + 1] = a[j] | |
j -= 1 | |
end |
Pro psaní webové aplikace v Ruby on Rails potřebujeme dva nástroje - editor a příkazovou řádku. Oba dva mají poměrně jasně odlišitelnou funkčnost a způsob použití, pojďme si to objasnit na příkladech.
Také se jí jinak říká jejím anglickým jménem command line, na jiných operačních systémech než Windows potom terminál. Ať již ji nazveme jakkoliv, vždy se jedná o to malé černé okno, které krom programování většina z nás nikdy nemusela dříve otevřít. Na Windowsech se k ni dostaneme pres Start -> Spustit ->
napsat "cmd" a Enter.
A co sem tedy píšeme? Shrňme si to do kategorií: