Skip to content

Instantly share code, notes, and snippets.

@kvarga
kvarga / vegasinsiderfilter.js
Created October 3, 2015 14:32
VegasInsider - Filter out games you don't care about
// Vegas Insider
// http://www.vegasinsider.com/college-football/odds/las-vegas/?s=246
// This hides all rows without a certain name in the team name field.
var x='Alabama'
$(".viBodyBorderNorm table:nth-child(2) tr").hide()
$(".tabletext:contains('"+x+"')").parent().parent().parent().show()
$(".tabletext:contains('"+x+"')").parent().parent().parent().next().show()

Keybase proof

I hereby claim:

  • I am kvarga on github.
  • I am kwvarga (https://keybase.io/kwvarga) on keybase.
  • I have a public key whose fingerprint is E9B3 EA69 9FA6 0BE6 230A ADE1 490A 72DD 3B9F 6B5C

To claim this, I am signing this object:

@kvarga
kvarga / python_history.py
Created August 7, 2013 00:12
print interactive python prompt input history oneliner
import readline;print('\n'.join(readline.get_history_item(i) for i in range(readline.get_current_history_length()) if readline.get_history_item(i) is not None ))
@kvarga
kvarga / gist:6090202
Created July 26, 2013 16:21
fibonacci
package main
import (
"log"
)
func main() {
var a, b, c uint64
a = 0
b = 1
@kvarga
kvarga / sfobject-to-csv.py
Last active December 18, 2015 03:49
create salesforce fields from a csv
# THIS CODE IS VERY UGLY
# I AM NOT SORRY
# Copyright 2013 Kyle Varga
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0