Skip to content

Instantly share code, notes, and snippets.

@vodafon
vodafon / fingerprint.js
Created April 26, 2021 17:14 — forked from nikitastupin/fingerprint.js
fingerprint.js
(() => {
let gadgets = [];
if (typeof _satellite !== 'undefined') {
gadgets.push('Adobe Dynamic Tag Management');
}
if (typeof BOOMR !== 'undefined') {
gadgets.push('Akamai Boomerang');
}
@vodafon
vodafon / Readme.md
Last active January 11, 2017 19:39
Linking #GoLang lib in #Ruby
go build -buildmode=c-shared -o sum.so sum.go
ruby link.rb
# gem install pdf-reader
require 'pdf-reader'
class ParsePdf
def initialize(filename)
@reader = PDF::Reader.new(filename)
end
def process
result = []
@vodafon
vodafon / jobs.erl
Created October 3, 2011 18:45
loop gen_server
-module(jobs).
-behaviour(gen_server).
-export([start_link/0, stop/0, test/0]).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
%% External APIs
start_link() ->
%% err1
-module(err1).
-export([undefined_function/3, undefined_lambda/3]).
undefined_function(Mod, Func, Args) ->
[Mod, Func, Args].
undefined_lambda(Module, Fun, Args) ->
[Module,Fun,Args].