View XMLHttpRequest_post.js
SimpleRequest = {
call: function(what, response) {
var request;
if (window.XMLHttpRequest) {
request = new XMLHttpRequest();
} else if (window.ActiveXObject) {
try {
request = new ActiveXObject('Msxml2.XMLHTTP');
} catch (e) {
try {
View fairseq-torch-install.sh
#torchnet
git clone https://github.com/torchnet/torchnet.git && cd torchnet
~/torch/install/bin/luarocks install rocks/torchnet-scm-1.rockspec
#torch-rnn
git clone https://github.com/facebookresearch/torch-rnnlib.git && cd torch-rnnlib/
~/torch/install/bin/luarocks make rocks/rnnlib-0.1-1.rockspec .
#argcheck
~/torch/install/bin/luarocks build https://raw.github.com/torch/argcheck/master/rocks/argcheck-scm-1.rockspec/Users/loretoparisi/torch/install/bin/luarocks build https://raw.github.com/torch/nn/master/rocks/nn-scm-1.rockspec
#moses
~/torch/install/bin/luarocks build https://raw.github.com/torch/moses/master/rockspec/moses-1.6.1-1.rockspec
View schwartzian_sort.js
/**
* Schwartzian Sort Transform
* @param array Array
* @param f function
* @param asc bool To sort ascending, false to sort descending
* @example arr = schwartzianSort(arr, function(o) { return o.date }, false)
*/
var schwartzianSort = function(array,f,asc) {
for (var i=array.length;i;){
var o = array[--i];
View github-notification-indicator.html
<style>
.notification-indicator:hover .mail-status {
background-color: #0366d6;
}
.notification-indicator .mail-status.unread {
display: inline-block;
}
.notification-indicator .mail-status {
position: absolute;
top: -2px;
View fasttext_evaluations.js
[ { configuration: { lr: 0.5, epoch: 15, dim: 20 },
evaluation: { N: '2191', P: '0.697', R: '0.697' } },
{ configuration: { lr: 0.5, epoch: 15, dim: 30 },
evaluation: { N: '2191', P: '0.699', R: '0.699' } },
{ configuration: { lr: 0.5, epoch: 20, dim: 20 },
evaluation: { N: '2191', P: '0.697', R: '0.697' } },
{ configuration: { lr: 0.5, epoch: 20, dim: 30 },
evaluation: { N: '2191', P: '0.695', R: '0.695' } },
{ configuration: { lr: 0.25, epoch: 15, dim: 20 },
View telnet.py
#!/usr/bin/python
import os
import re
import sys
import telnetlib
import time
import datetime
def read_until(cue, timeout=2):
View github-reverse-progress.html
<html>
<header>
<style>
.reverse-progress-container {
position: relative;
height: 3px;
background-color: #e5e9eb;
background-image: -webkit-linear-gradient(left, #599e47, #306a94, #492860, #c03d32, #d17337);
background-image: linear-gradient(to right, #599e47, #306a94, #492860, #c03d32, #d17337);
background-size: 100% 3px;
View opencv.log
General configuration for OpenCV 3.1.0 =====================================
-- Version control: unknown
--
-- Platform:
-- Host: Linux 4.4.0-43-generic x86_64
-- CMake: 3.5.1
-- CMake generator: Unix Makefiles
-- CMake build tool: /usr/bin/make
-- Configuration: RELEASE
--
View test_sample.csv
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 2.
SPAM subject: re : walium clalls vi - agra re : walium ciallls vlaggra % url email
HAM "so you found a place where the grass is greener and you jumped the fence to the other side is it good? are they giving you a world i could never provide? well i hope you\'re proud of your big decision yeah, i hope it\'s all that you want and more now you\'re free from the agonizing life you were living before and you say what you need to say so that you get to walk away it would kill you to have to stay trapped when you\'ve got something new well i\'m sorry you had it rough and i\'m sorry i\'m not enough thank god they rescued you so you got what you always wanted so you got your dream come true good for you good for you, you, you got a taste of a life so perfect so you did what you had to do good for you good for you does it cross your mind to be slightly sorry? do you even care that you might be wrong? was it fun? well i hope you had a blast while you dragged me along and you say what you need to say and you play who yo