Skip to content

Instantly share code, notes, and snippets.

$ aspell dicts
en
en-variant_0
en-variant_1
en-variant_2
en-w_accents
en-wo_accents
en_CA
en_CA-variant_0
en_CA-variant_1
class Person
def greet(name)
puts "Hello, #{name}!"
end
end
# This will fail with the following error:
# ArgumentError: wrong number of arguments (2 for 1)
# This is because `super` calls Person#greet('Sir', 'Lancelot')
class NoblePerson < Person
@mitio
mitio / iso-to-usb.sh
Last active August 29, 2015 14:12
A script to convert an .iso file to a format suitable for creating a bootable USB (Mac OS X-specific)
#!/bin/sh
set -e
if [ "$1" = "" -o "$2" = "" ]; then
echo "Usage: $0 /path/to/source.iso /dev/usb_disk_device" >&2
exit 1
fi
iso_source="$1"

Фийдбек от сбирката в Торонто след лекцията днес

  • Да говорим в началото на курса подробно за разлика м/у скриптов, динамично типизиран, GC-език и C++, тъй като студентите (особено втори курс) са свикнали на C++ и Ruby им идва нанагорно.
  • Много хора намират курса за труден.
  • Доста хора са отписали курса след 1-2 лекции. Цитат от един такъв човек: "За да изкараш курса, трябва да знаеш Руби". Търся контакт с него за подробности.
  • "Метафорите са окей, добри, важни. Много помагат." (Марта), vs. "С метафорите не трябва да се прекалява; за изключенията ме объркаха." (Диана).
@mitio
mitio / openfest_civic_unconf.md
Created October 28, 2014 18:27
Инфо за OpenFest unconference слота на Общество.бг

Идея

Идеята е да е максимално неформално. Организацията да е максимално low key, self-organized, извън организацията на Open Fest.

Общо-взето, разполагаме с два часа, които ние решаваме как да запълним.

Формат

Варианти:

@mitio
mitio / version_control_system_definition.txt
Created October 28, 2014 10:20
Дефиниция на система за контрол на версиите
“Система за контрол на версиите” е софтуерен продукт за следене на промените по
дадено съдържание (текст, програмен код, двоични файлове), функциониращ независимо
от и в допълнение на инструментите, с които се създава съдържанието. Системите за
контрол на версиите трябва да позволяват правенето на “снимки” на моментното
състояние на съдържанието и предоставят възможност да се преглеждат разликите
между всеки две “снимки” (версии), връщането към предишно състояние (“снимка”)
на съдържанието при необходимост, както и пълна отчетност кой и кога е създал
или променил определена част от съдържанието.
➜ ~ sh -x pow.sh
+ set -e
+ POW_ROOT='/Users/dimitardimitrov/Library/Application Support/Pow'
+ NODE_BIN='/Users/dimitardimitrov/Library/Application Support/Pow/Current/bin/node'
+ POW_BIN='/Users/dimitardimitrov/Library/Application Support/Pow/Current/bin/pow'
+ LATEST_VERSION=0.5.0
+ '[' -z '' ']'
+ ARCHIVE_URL_ROOT=http://get.pow.cx/versions
++ uname -s
+ '[' Darwin '!=' Darwin ']'
@mitio
mitio / smart_cities_and_smart_governments_dad2014.md
Last active August 29, 2015 14:07
Smart cities and smart governments; panel discussion during Digital Action Day 2014

Digital Cities And Governments

Public sector and cities also go digital:

What are the solutions for smart government and smart cities?

A work panel discussion, part of Digital Action Day 2014, Brussels, Belguim.

smart cities and governments - dad 2014

@mitio
mitio / europe_code_week_baruco_2014.md
Last active August 29, 2015 14:06
Europe Code Week, Baruco 2014 Lightning Talk

Europe Code Week 2014

By coming up on this stage, I'm making the assumption that there is a fair amount of people in the audience who like coding and who believe that to be able to code is a very valuable skill. I know for sure that some of you are really passionate about sharing what you know with others. I really like programming communities, and the Ruby community in particular, in that we're pretty open and friendly to newcomers and pretty eager to share our passions and knowledge with them. I've learned a lot this way and I think that's what keeps us moving forward with great speed.

If you agree with me, then I think you'd be interested to get involved in the upcoming Europe Code Week.

The second edition of Code Week will be held this year, from the 11th to the 17th of October. It's a great initiative launched by the Neelie Kroes' Young Advisors with some involvement from the European Commission. It's about spreading the

require 'csv'
CSV.read('file.csv', headers: true).each { |row| row['име на колонката от хедъра'] }