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
JSON.stringify(Array.prototype.slice.call(document.querySelectorAll('h3')).map(function(t) {return {title: t.querySelector('a').innerText, url: t.querySelector('a').getAttribute('href'), desc: t.parentNode.querySelector('span.st').innerText};})); |
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
-- Convert date in format 31 Mar 2017 (DD mmm YYYY) to 2017-03-31 (YYYY-MM-DD) | |
select day, substr(day,8,4) || '-' || case when instr('JanFebMarAprMayJunJulAugSepOctNovDec',substr(day,4,3)) < 27 THEN '0' ELSE '' END || cast(instr('JanFebMarAprMayJunJulAugSepOctNovDec',substr(day,4,3))/3+1 as TEXT) || '-' ||substr(day,1,2) from dfix; |
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
{"layers":[{"out_depth":3,"out_sx":32,"out_sy":32,"layer_type":"input"},{"sx":5,"sy":5,"stride":1,"in_depth":3,"out_depth":16,"out_sx":32,"out_sy":32,"layer_type":"conv","l1_decay_mul":0,"l2_decay_mul":1,"pad":2,"filters":[{"sx":5,"sy":5,"depth":3,"w":{"0":0.08744154418246097,"1":0.18789790065152595,"2":0.041631229676767724,"3":0.18082788180544582,"4":0.11440281696531183,"5":0.03176691756459512,"6":-0.35018367798690675,"7":-0.15176780824233999,"8":-0.13392557881302977,"9":-0.2834479550289948,"10":-0.049760396131335746,"11":-0.29717502337755825,"12":0.23385215337453796,"13":0.00918239837687766,"14":-0.07261047098638874,"15":0.17746217100972922,"16":0.25019919570980714,"17":0.042493963433369975,"18":-0.08474770518112724,"19":0.3547076148007899,"20":-0.10842629542023963,"21":-0.13158129774844862,"22":0.04863952811138945,"23":-0.2222968967600037,"24":-0.3433679917075889,"25":-0.056366457670235987,"26":-0.022968498593758394,"27":-0.016189819374352588,"28":0.07194064351316488,"29":-0.021910116413534582,"30":-0.0439 |
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
$('#item-info > div.content > div.property-gallery > div.carousel.js-carousel > button.carousel__wrapper.items.js-carousel-wrapper > ul > li > div > img').map(function(a,b) {return b.src;}) |
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
javascript: (function() { | |
var p = document.createElement('a'); | |
p.href = location.href; | |
var u = p.pathname.split('/'); | |
var t = new Date(); | |
var i = t.getFullYear().toString() + "-" + (t.getMonth() > 8 ? '' : '0') + (t.getMonth() + 1).toString() + "-" + (t.getDate() > 9 ? '' : '0') + t.getDate().toString(); | |
prompt("Ref", "<ref>{{Tidningsref |författare= |rubrik= |url=" + location.href + " |tidning=Svenska Dagbladet |datum=" + u[2] + " |sid=" + u[3] + " |hämtdatum=" + i + " }}</ref>"); | |
})(); |
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
javascript:(function () {var p = document.createElement('a');p.href = location.href;var u = p.pathname.split('/');var t = new Date();var i = t.getFullYear().toString()+"-"+(t.getMonth()>8 ? '' : '0')+(t.getMonth()+1).toString()+"-"+(t.getDate()>9 ? '' : '0')+t.getDate().toString();prompt("Ref","<ref>{{Tidningsref |författare= |rubrik= |url="+location.href+" |tidning=Svenska Dagbladet |datum="+u[2]+" |sid="+u[3]+" |hämtdatum="+i+" }}</ref>");})(); |
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
require 'csv' | |
require 'rtf' | |
include RTF | |
welcome_text = "Vi är väldigt glada för att just du ville komma och fira vår dag. Vi hoppas att du ska få en härlig eftermiddag med god mat och trevliga samtal. | |
För att lära känna de andra gästerna lite bättre ger vi här en kort presentation." | |
table_starts = {1 => "Vänsterflanken", 18 => "Mitten", 24 => "Högerflanken"} |
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
require 'zip' | |
require 'json' | |
infile = ARGV[0] | |
tlas = {} | |
Zip::File.open(infile) do |zip_file| | |
entries = zip_file.glob('*/*.json') |
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
javascript: var bg = jQuery('.novella-entry-mast-img').css('background-image'); if(bg===undefined) {bg = jQuery('.article-head').css('background-image');} if(bg===undefined) {bg = jQuery('img.wp-post-image')[0].src;} else {bg = bg.replace('url(','').replace(')','').replace(/\"/gi, "");} window.open('https://www.google.com/searchbyimage?image_url='+bg, '_blank'); |
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
40439 STOCKHOLM | |
42138 GÖTEBORG | |
40630 BORÅS | |
11754 SOLNA | |
16667 STOCKHOLM | |
37506 FRUÄNGEN | |
13449 STOCKHOLM | |
23836 MALMÖ | |
23841 MALMÖ | |
24749 MALMÖ |