go build -buildmode=c-shared -o sum.so sum.go
ruby link.rb
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
(() => { | |
let gadgets = []; | |
if (typeof _satellite !== 'undefined') { | |
gadgets.push('Adobe Dynamic Tag Management'); | |
} | |
if (typeof BOOMR !== 'undefined') { | |
gadgets.push('Akamai Boomerang'); | |
} |
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
# gem install pdf-reader | |
require 'pdf-reader' | |
class ParsePdf | |
def initialize(filename) | |
@reader = PDF::Reader.new(filename) | |
end | |
def process | |
result = [] |
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
-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() -> |
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
%% 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]. |