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
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.7.2.min.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$(document).scroll(function(e) { | |
if ($('body').scrollTop() < 0) { | |
$('#refreshing').show(); | |
setTimeout(function(){if ($('body').scrollTop() < 0) { location.reload(true)} else { $("#refreshing").hide(); }}, 1000); | |
} |
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
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.7.2.min.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$(document).scroll(function(e) { | |
if ($('body').scrollTop() < 0) { | |
$('#refreshing').show(); | |
setTimeout(function(){location.reload(true)}, 1000); | |
} |
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 App = Em.Application.create(); | |
App.Player = Em.Object.extend({ | |
level: 1, | |
name: null, | |
up: function() { | |
this.set('level', this.get('level') + 1); | |
} | |
}); | |
App.playerController = Em.ArrayController.create({ |
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 App = Em.Application.create(); | |
App.Player = Em.Object.extend({ | |
level: 1, | |
name: null, | |
}); | |
App.playerController = Em.ArrayController.create({ | |
content: [], | |
createPlayer: function(name) { |
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 App = Em.Application.create(); | |
App.Player = Em.Object.extend({ | |
level: 1, | |
name: null, | |
up: function() { | |
this.set('level', this.get('level') + 1); | |
} | |
}); | |
App.playerController = Em.ArrayController.create({ |
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 App = Em.Application.create(); | |
var Player = Em.Object.extend({ | |
level: 1, | |
name: null, | |
}); | |
App.jane = Player.create({ name: "Jane"}); | |
App.view = Em.View.create({ | |
templateName: 'player-view', | |
counterBinding: 'App.jane.level', |
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
require 'rubygems' | |
require 'sinatra' | |
post '/pubsubhubbub' do | |
p request | |
end | |
get '/pubsubhubbub' do | |
request.params['hub.challenge'] | |
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
/* Removes Velvet, Totalcar, Porfolio, Divany, HG and some other unnecessary stuff. For the best experience, use it with adblock. */ | |
/* based on http://keki.tumblr.com/post/15183352367/angeldaynak-szeretettel and userscripts.org/scripts/show/69639 */ | |
#featured, #rss, #indabox, .adocean, #cikklistak, #szolg, .hirdetes, .cimlapozo-anyag .microsite_dummy, .hirdetes_bottom, .linkroll, #idojaras_top, #idojaras, #idojaras_bottom, #idojaras_bottom + .doboz_bottom, .partnerek, .partnerek + .box_bottom_light, #ctravelbox, #ctravelbox + .box_bottom_dark, #bookline, #top_velvet, #top_velvet + .hasab, #top_velvet + .hasab + .hasab, #divanybox, #hgbox, #ml_kep, #top_tc, #top_tc + .hasab, #top_tc + .hasab + .hasab, #travelbox, #ongo_rotate, .box_bottom_dark, #ongobox, #tulelokeszlet_szeles, #top_portfolio, #top_portfolio + .hasab, #top_portfolio + .hasab + .hasab {display:none;} | |
#navi { height: auto; } | |
#ajanlobox {height: 0; opacity: 0; z-index: -1000; padding: 0px; margin: 0px;} | |
#features .box_light.blogbox.tematikus_bl |
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
navi.on 'weather', (from, to, message) -> | |
query = | |
host: "koponyeg.hu" | |
port: 80 | |
path: 'idojaras_rss.php?regios=1' | |
http.get query, (res) -> | |
body = "" | |
res.on 'data', (chunk) -> body += chunk | |
res.on '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
irc = require 'irc' | |
navi = new irc.Client 'hub.irc.hu', 'Navi', debug:true, channels: ['#nonesuch'] | |
Array::random = -> | |
@[Math.floor Math.random()*@length] | |
navi.hey = navi.addListener | |
navi.addListener 'message', (from, to, message) -> |