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
function PriceClass(code, cont) | |
{ | |
var h = code; | |
if (code == '0') h = 'Advanced'; | |
else if (code == '1') h = 'HTS'; | |
else if (code == '2') h = 'Historical'; | |
if (cont != null) | |
{ | |
cont.innerHTML = h; | |
} |
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
1 #000000 | |
1 #068b00 | |
1 #0c9452 | |
1 #0e633a | |
1 #264409 | |
1 #266bab | |
1 #285a9e | |
1 #314f8f | |
1 #414141 | |
1 #514721 |
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
#!/bin/bash | |
clear | |
function notify() { | |
notify-send -u critical -i appointment "Pomodoro" "$1" | |
} | |
function measure() { | |
case "$1" in |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<!-- Released under CC lincense http://creativecommons.org/licenses/by/2.5/ --> | |
<!-- Feeds generated using this stylesheet (or it's derivatives) must put http://atom.geekhood.net in <generator> element --> | |
<x:stylesheet version="1.0" | |
exclude-result-prefixes="atom xhtml php" | |
xmlns:content="http://purl.org/rss/1.0/modules/content/" | |
xmlns:php="http://php.net/xsl" | |
xmlns:x="http://www.w3.org/1999/XSL/Transform" | |
xmlns:atom="http://www.w3.org/2005/Atom" | |
xmlns:dc="http://purl.org/dc/elements/1.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
#!/bin/sh | |
# remove nvidia-current to let intel card work | |
sudo apt-get remove nvidia-current | |
# basic apps | |
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections | |
sudo apt-get install -yy git ssh mercurial vim-gnome byobu ttf-mscorefonts-installer dtrx comix | |
# blinking cursor is a form of chinese water torture |
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
$(document).ready -> | |
class Page extends Backbone.View | |
render_template: (p) -> _.template($('#' + @template).html(), p) | |
render: -> | |
$(@el).html @render_template() | |
super | |
class Egyik extends Page | |
template: 'egyik' |
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
class Cell extends Backbone.Model | |
initialize: -> | |
@__defineGetter__ 'selected', -> @get 'selected' | |
@__defineSetter__ 'selected', (value)-> @set selected:value | |
class Sheet extends Backbone.Collection | |
initialize: -> | |
@__defineGetter__ 'size', -> Math.sqrt @length |
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
http = require 'http' | |
sets = (items, callback) -> | |
c = 0 | |
query = items.map (i) -> | |
c += 1 | |
return "q#{c}=#{i}" | |
.join('&') | |
options = |
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
filetype plugin indent on | |
syntax on | |
set lbr! | |
set wrap | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set hlsearch | |
set mouse=a | |
set number |
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
// ezekre a változókra hivatkozik az útvonaltervező a válaszában: | |
var g_arrAddressList = [], | |
g_Route = [], | |
kamu = function () { | |
return true; | |
}, // hogyne, még csináljunk is valamit? | |
ShowAddress = kamu, | |
FillAddress = kamu, | |
FillRoute = kamu, | |
HereIam = kamu; |