Skip to content

Instantly share code, notes, and snippets.

View Row's full-sized avatar
🤘
grind

Jon Borglund Row

🤘
grind
  • Bromma, Stockholm, Sweden
View GitHub Profile
@Row
Row / filmtipset-fix-broken-similar-search.user.js
Last active January 19, 2019 16:57
Filmtipset.se - Fix broken similar movie search
// ==UserScript==
// @name Filmtipset.se - Fix broken similar movie search
// @namespace https://github.com/Row/filmtipset-fix-broken-similar-movies
// @version 0.1
// @description Modified function from filmtipset.se. To access globals unsafeWindow is used
// @author Row
// @match http://www.filmtipset.se/film/*similar*
// @grant unsafeWindow
// ==/UserScript==
{
"env": {
"jasmine": true,
"node": true,
"mocha": true,
"browser": true,
"builtin": true,
"es6": true
},
"globals": {},
//
// Created by Jon Borglund on 18/12/15.
//
#define __STDC_WANT_LIB_EXT1__ 1
#include <iostream>
class I
{
public:
virtual void met() = 0;
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#define LEN 10000000
#define MAX_NUMBER_OF_THREADS 4
int arr[LEN];
int thread_index = 1;
@Row
Row / nosfv.d
Created October 15, 2010 08:34
Finds leaf folders missing sfv-file.
import std.stdio;
import std.file;
import std.string;
import std.array;
void dirAndCheckForSfv(string pathname) {
bool isLeaf = true;
bool containsSfv = false;
foreach (DirEntry e; dirEntries(pathname, SpanMode.shallow)) {
@Row
Row / ReliableSender.java
Created October 12, 2010 09:46
DataCom1 Lab1
/**
* Sliding window
*/
public class ReliableSender extends SenderProtocol {
private Channel channel;
private Timer timer;
private Packet[] window;
@Row
Row / freeroom.rb
Created August 31, 2010 11:55
Finds free room on Pollacks
require 'pp'
require 'time'
require 'open-uri'
class Room
attr_accessor :roomnumber, :webid
def initialize(roomnumber, webid)
@roomnumber = roomnumber
@webid = webid