This file contains hidden or 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
<!-- application --> | |
<div class="user"> | |
<span class="name">{{App.user.name}}</span> | |
</div> |
This file contains hidden or 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
mysql> show create table foo; | |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
| Table | Create Table | | |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
| foo | CREATE TABLE `foo` ( | |
`bar` varchar(128) DEFAULT NULL, | |
`baz` varchar(128) DEFAULT NULL, | |
UNIQUE KEY `foo_unique` (`bar`,`baz`) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1 | | |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ |
This file contains hidden or 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
previous = nil | |
output_buffer = File.open(ARGV[1], 'w') | |
File.open(ARGV[0], 'r') do |f| | |
prevline = nil | |
curline = f.gets | |
nextline = f.gets | |
while !curline.nil? | |
if curline != prevline && curline != nextline | |
output_buffer.write(curline) | |
end |
This file contains hidden or 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 self = this; | |
callbackInvoker(function(){ | |
self.doStuff(); | |
}); |
This file contains hidden or 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
~~ [EqualA, EqualB].uniq ~~ | |
EqualA: hash | |
EqualB: hash | |
[EqualA, EqualB] | |
~~ [EqualA, EqualB, EqualC].uniq ~~ | |
EqualA: hash | |
EqualB: hash | |
EqualC: hash | |
[EqualA, EqualB, EqualC] |
This file contains hidden or 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
# STEP 1 | |
string = "iirytroyppytpeppowuiyoiuypipiyuyotyoiwiytorouqyiepyirueuiprpptwyiroqwtuyipourrrourorwipowiorutpwtwruuioquteorioriyutwqyyprptuqqquuituyywyuoewtrppqwrtiiruirpwyptpuoyyoeyerpqiotuieripurouwuwyuwrworowitoepoypeipeypiireeorrwripuuteoitpuutturruwiyryeetyrioweytueqrrrtotrpiqetoyepoipiwrwpppiritupwipruooiepoweypiuwrqywuuwyiroqpqpruioopuiuerputpwwuuiqwpiroewrtwiqerteoyeqtutwoeoipioiuqiiiouuoqtuuwtuwiiqwppqitywuqpuutrqiyoeuuutwrwtoqrqyoeyoiporuuioiwryoeruypreprqroiyuqwtuyoytoerwqryeeripryieypiwqirtriurueypiuyuypriuiwptywppupoioyrewooytreteeriiwroietuwypieeeeeqpiiiwrirtppoeyiwpooyyporpruwuoriiyowuytiwpwpryeywotoyirqypyypoeptiuwwoyprquoetepptorwiewprpiywwtuieeiweytrrwiqtwotioryoiptyyyuriiqiyroeeiqepwteuwptpruuypipieuoiiuuweeuryuuowporrooyywyyrryriqyirooitirueruptotpryoqtipippyptiurwyiryooywtryyuurtrutwqiqiiiqwouyeooueoturuowiuwrtruwwiupwopwweoo" | |
letters = %w(q w e r t y u i o p) | |
map = {} | |
letters.each_with_index { |letter, index| map[letter] = index } | |
numbers = string.split('').map {|letter| map[lette |
NewerOlder