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
// ==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== |
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
Show hidden characters
{ | |
"env": { | |
"jasmine": true, | |
"node": true, | |
"mocha": true, | |
"browser": true, | |
"builtin": true, | |
"es6": true | |
}, | |
"globals": {}, |
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
// | |
// Created by Jon Borglund on 18/12/15. | |
// | |
#define __STDC_WANT_LIB_EXT1__ 1 | |
#include <iostream> | |
class I | |
{ | |
public: | |
virtual void met() = 0; |
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
#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; |
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
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)) { |
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
/** | |
* Sliding window | |
*/ | |
public class ReliableSender extends SenderProtocol { | |
private Channel channel; | |
private Timer timer; | |
private Packet[] window; |
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 'pp' | |
require 'time' | |
require 'open-uri' | |
class Room | |
attr_accessor :roomnumber, :webid | |
def initialize(roomnumber, webid) | |
@roomnumber = roomnumber | |
@webid = webid |