Skip to content

Instantly share code, notes, and snippets.

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;
}
1 #000000
1 #068b00
1 #0c9452
1 #0e633a
1 #264409
1 #266bab
1 #285a9e
1 #314f8f
1 #414141
1 #514721
#!/bin/bash
clear
function notify() {
notify-send -u critical -i appointment "Pomodoro" "$1"
}
function measure() {
case "$1" in
<?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/"
#!/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
$(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'
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
http = require 'http'
sets = (items, callback) ->
c = 0
query = items.map (i) ->
c += 1
return "q#{c}=#{i}"
.join('&')
options =
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
// 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;