This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
if has("autocmd") | |
filetype indent plugin on | |
" Enable filetype detection | |
filetype plugin indent on | |
" Restore cursor position | |
autocmd BufReadPost * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Data Driven Code | |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
=> 0 | |
irb(main):002> boti_pontszama +1 | |
=> 1 | |
irb(main):003> gergo_pontszama = 0 | |
=> 0 | |
irb(main):004> gergo_pontszama += 1 | |
=> 1 | |
irb(main):005> boti_pontszama += 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/setup' | |
Bundler.require | |
class EventStore < SimpleDelegator | |
def self.in_memory | |
new( | |
RubyEventStore::Client.new( | |
repository: RubyEventStore::InMemoryRepository.new | |
) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`say -v Mariska "Szia, Az Én nevem Maja, téged, hogy hívnak?"` | |
nev = gets | |
`say -v Mariska "Szia #{nev}, örülök, hogy bemutatkoztunk egymásnak. Most egy kevés matematikát fogunk gyakorolni játékosan"` | |
`say -v Mariska "A matematika ugyanis megnyitja a lehetőségeket minden irányba."` | |
`say -v Mariska "Hány darab feladatot szeretnél megoldani?"` | |
number_of_exercises = gets.to_i | |
number_of_exercises.times do |index| | |
str = "Az #{index + 1} feladat" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# szamolos programkod: | |
(1..101).each do |i| | |
`say -v Mariska #{i}` | |
end | |
`say -v Mariska Itt a vége, fuss el véle!` | |
# a vegtelen tortenet inditomondata: | |
`say -v Mariska Már éjfélre járt az idő a feneketlen nagy erdőben amikor írtó nagy zaj verte fel az erdő csendjét` | |
# szorakozas kulonbozo helyzetekkel: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# curl 'localhost:9200/global_search/_search?q=M1&pretty' | |
# curl -XPOST 'localhost:9200/global_search/_search?pretty' -d ' | |
# { | |
# "query": { | |
# "match": { | |
# "_all": "M1" | |
# } | |
# } | |
# }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.debug('Hello I am the script tag :)'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Orban Botond | |
email = [email protected] | |
[core] | |
editor = subl -n -w | |
excludesfile = /Users/orbanbotond/.gitignore_global | |
[github] | |
user = orbanbotond | |
token = xxx | |
[push] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var DateHelper = { | |
// Takes the format of "Jan 15, 2007 15:45:00 GMT" and converts it to a relative time | |
// Ruby strftime: %b %d, %Y %H:%M:%S GMT | |
time_ago_in_words_with_parsing: function(from) { | |
var date = new Date; | |
date.setTime(Date.parse(from)); | |
return this.time_ago_in_words(date); | |
}, | |
time_ago_in_words: function(from) { |
NewerOlder