Skip to content

Instantly share code, notes, and snippets.

View chriswk's full-sized avatar
🖥️
coding @Unleash

Christopher Kolstad chriswk

🖥️
coding @Unleash
View GitHub Profile
@chriswk
chriswk / pc.md
Last active December 18, 2015 00:09
  • i7-2600k
  • HC60 vannkjøling
  • Fractal Design R3 kabinett
  • 16 GB DDR3-1600
  • GeForce GTX 670
  • MIST 660 W PSU
  • Et eller annet z77 hovedkort fra Asus
^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]+-?)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]+-?)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$
@chriswk
chriswk / FINN-tv.js
Last active December 15, 2015 22:59
$(document).ready(function () {
var videoList = $("<ul></ul>");
$.ajax({
url: "http://solr01.finn.no:12100/solr/select",
data: {
q: "videourl:*",
sort: "publisheddate DESC",
wt: "json",
fl: "videourl",
rows: 5,
@chriswk
chriswk / gist:5186382
Last active December 15, 2015 02:19
Noen som føler at de har jobbet her lenge?
Commits Author Percentage
3646 Marthe Slaatsveen 3.3%
3081 Eivind Askland 2.8%
3046 Vu Ha 2.8%
3020 Solveig Riddervold 2.8%
2768 Jørgen Andersen 2.5%
2709 Tom Sverre Evensen 2.5%
2512 Per Dyrstad 2.3%
2278 Runar Botten 2.1%
2215 Anders Johnsen 2.0%
define(['modules/utility', 'common/dialog', 'common/jsonserver'],
function (utility, dialog, server) {
"use strict";
var org = server.sub({basePath: '/finn/user/relation/org', required: true});
org.POST('hideOrganisation', '/hide', {mapping: ['orgId', 'orgName']});
org.POST('unHideOrganisation', '/unhide', {mapping: ['orgId']});
function hideOrg(module) {
server.hideOrganisation(module.orgId, function (err, data) {
@chriswk
chriswk / Fudge.md
Created February 14, 2013 08:47
Fudge oppskrift

Konstant røring med slikkepott er viktig for å unngå at det svir seg

  • 450 gram sukker
  • 1/3 liter kremfløte
  • Helles opp i en solid gryte og røres til alt sukkeret er rørt inn i fløten. Bruk en slikkepott
  • Sett på platen på nesten full styrke
  • 30-50gram smør usaltet
  • 1ts salt
  • 2-3ss maissirup (high fructose corn syrup)
  • Smør, salt og sirup tas oppi når blandingen begynner å bli varm
@chriswk
chriswk / index.html
Created February 11, 2013 21:36
Slding graph
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.axis text {
font: 10px sans-serif;
}
.axis line,
.axis path {
DB.sql.eachRow("select loc_area.description, loc_area.area_type from Loc_Area, loc_list, loc_area_list where loc_area.areaid = loc_area_list.areaid and loc_area_list.ListId = loc_list.listid and loc_list.listid in (10, 25)") { row ->
def name = row["description"].replaceAll(/\(.+\)/, "")
def gNa = new GeoName(name: name)
if (names.containsKey(gNa)) {
names[gNa] += 1
} else {
names[gNa] = 1
}
}
select loc_area.description, loc_area.area_type from Loc_Area, loc_list, loc_area_list
where loc_area.areaid = loc_area_list.areaid and
loc_area_list.ListId = loc_list.listid and
loc_list.listid in (10, 25)
[:w342, :w92, :w500=, :w92=, :original, :original=, :w154=, :w185, :w185=, :w154, :w500, :w342=, :type, :id, :marshal_dump, :to_s, :modifiable, :delete_field, :method_missing, :==, :table, :new_ostruct_member, :inspect, :marshal_load, :present?, :`, :html_safe?, :include_class, :as_json, :to_param, :java_kind_of?, :with_options, :to_yaml_properties, :acts_like?, :try, :psych_to_yaml, :to_yaml, :presence, :blank?, :is_haml?, :duplicable?, :to_json, :dclone, :eval_js, :handle_different_imports, :instance_variable_names, :in?, :to_query, :instance_values, :pretty_print_inspect, :pretty_print_cycle, :pretty_print_instance_variables, :pretty_print, :require_association, :require_dependency, :unloadable, :require_or_load, :require, :load, :load_dependency, :java_signature, :methods, :define_singleton_method, :breakpoint, :enable_warnings, :silence_stream, :capture, :initialize_clone, :freeze, :extend, :nil?, :tainted?, :method, :is_a?, :instance_variable_defined?, :instance_variable_get, :pretty_inspect, :singleton