- act2vec, trace2vec, log2vec, model2vec https://link.springer.com/chapter/10.1007/978-3-319-98648-7_18
- apk2vec https://arxiv.org/abs/1809.05693
- app2vec http://paul.rutgers.edu/~qma/research/ma_app2vec.pdf
- ast2vec https://arxiv.org/abs/2103.11614
- attribute2vec https://arxiv.org/abs/2004.01375
- author2vec http://dl.acm.org/citation.cfm?id=2889382
- baller2vec https://arxiv.org/abs/2102.03291
- bb2vec https://arxiv.org/abs/1809.09621
This file contains hidden or 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
#!/usr/bin/env bash | |
# This script install Docker on Ubuntu >= 14.04 LTS | |
# | |
# This script must be run as root: | |
# sudo sh install_docker.sh | |
# | |
sudo apt-get -y install docker.io | |
sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker | |
sudo sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker |
This file contains hidden or 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
#!/usr/bin/env bash | |
# This script install PhantomJS in your Debian/Ubuntu System | |
# | |
# This script must be run as root: | |
# sudo sh install_phantomjs.sh | |
# | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 |
This file contains hidden or 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 pickle | |
file = open("~/.keras/datasets/imdb_full.pkl",'rb') | |
file = open(".keras/datasets/imdb_full.pkl",'rb') | |
object_file = pickle.load(file) | |
file.close() |
This file contains hidden or 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
// wgxpath + jsdom | |
var wgxpath = require('wgxpath'); | |
var jsdom = require('jsdom'); | |
// cheerio + request | |
var cheerio = require('cheerio'); | |
var request = require('request'); | |
var url = 'http://www.merriam-webster.com/word-of-the-day'; | |
var expressionString = '//*[@class="word-and-pronunciation"]/h1'; |
This file contains hidden or 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
// inject Wicked-Good-Xpath | |
var script = document.createElement('script'); | |
script.src = "https://github.com/google/wicked-good-xpath/releases/download/1.3.0/wgxpath.install.js"; | |
document.getElementsByTagName('head')[0].appendChild(script); | |
script.onload=function() { | |
console.log("injected") | |
// install wgxpath | |
wgxpath.install() | |
// create expression | |
var expressionString = '//*[@class="word-and-pronunciation"]/h1'; |
This file contains hidden or 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
var cp = require('child_process'); | |
var promiseAll = function(items, block, done, fail) { | |
var self = this; | |
var promises = [], | |
index = 0; | |
items.forEach(function(item) { | |
promises.push(function(item, i) { | |
return new Promise(function(resolve, reject) { | |
if (block) { | |
block.apply(this, [item, index, resolve, reject]); |
This file contains hidden or 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
// Simple XMLHttpRequest | |
// based on https://davidwalsh.name/xmlhttprequest | |
var SimpleRequest = { | |
call: function(what, response) { | |
var request; | |
if (window.XMLHttpRequest) { // Mozilla, Safari, ... | |
request = new XMLHttpRequest(); | |
} else if (window.ActiveXObject) { // IE | |
try { | |
request = new ActiveXObject('Msxml2.XMLHTTP'); |
This file contains hidden or 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
/** Fetch user agents by class from http://ua.theafh.net/ */ | |
function UserAgents () { | |
var COL_UA=1; | |
var COL_CLASS=3; | |
this.list=[]; | |
this.Class=''; | |
this.parse = function(Class) { | |
this.list=[]; | |
var self=this; | |
this.Class=Class; |
This file contains hidden or 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
var console = { | |
log: function(s) { | |
document.getElementById("console").innerHTML += s + "<br/>" | |
} | |
} | |
// Simple XMLHttpRequest | |
// based on https://davidwalsh.name/xmlhttprequest | |
SimpleRequest = { | |
call: function(what, response) { | |
var request; |