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
#!/bin/bash | |
# add ip / hostname separated by white space | |
HOSTS="au2-sd-pptp-01.jumptoserver.com au-sd-pptp-01.jumptoserver.com at-vn-pptp-01.jumptoserver.com br-jp-pptp-01.jumptoserver.com bg-sf-pptp-01.jumptoserver.com ca-mr-pptp-01.jumptoserver.com cz-pr-pptp-01.jumptoserver.com eg-sb-pptp-01.jumptoserver.com fi-hs-pptp-01.jumptoserver.com fr-rb-pptp-01.jumptoserver.com de-fr-pptp-01.jumptoserver.com hk-pptp-01.jumptoserver.com in2-id-pptp-01.jumptoserver.com in-jp.jumptoserver.com it-rm-pptp-01.jumptoserver.com jp-tk-pptp-01.jumptoserver.com lu-ss-pptp-01.jumptoserver.com nl-sk-pptp-01.jumptoserver.com nl2.jumptoserver.com nl3.jumptoserver.com nl4.jumptoserver.com nr-ol-pptp-01.jumptoserver.com wfh.jumptoserver.com wfh2.jumptoserver.com pl-gd-pptp-01.jumptoserver.com ro-bu-pptp-01.jumptoserver.com rs-bg-pptp-01.jumptoserver.com sg-pptp-01.jumptoserver.com kr-so-pptp-01.jumptoserver.com es-bl-pptp-01.jumptoserver.com se-st-pptp-01.jumptoserver.com ch-zr-pptp-01.jumptoserver.com tr-iz-pptp-01.jumptoserver.c |
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
#include <iostream> | |
#include <algorithm> | |
#include <ctime> | |
using namespace std; | |
int N=100, K=3; | |
int A[100] = {4, 19, 29, 43, 45, 60, 67, 86, 90, 110, 130, 140, 154, 155, 162, 174, 183, 199, 219, 230, 238, 255, 256, 262, 277, 295, 302, 319, 325, 344, 352, 365, 384, 399, 406, 426, 430, 447, 463, 470, 480, 490, 501, 502, 517, 527, 529, 533, 535, 540, 550, 566, 583, 585, 588, 593, 601, 617, 627, 629, 634, 649, 663, 678, 689, 693, 698, 703, 720, 725, 730, 733, 735, 736, 755, 775, 787, 804, 824, 834, 840, 842, 845, 853, 872, 879, 892, 899, 902, 903, 922, 938, 956, 976, 992, 1001, 1016, 1018, 1022, 1032}; | |
int last_vertex = -1; | |
int next_vertex[20001]; |
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
//LIS | |
#include <iostream> | |
#include <fstream> | |
#include <algorithm> | |
#define BOXCOUNT 21 | |
using namespace std; |
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
function cartesian() { | |
const N = arguments.length; | |
var arr_lengths = Array(N); | |
var digits = Array(N); | |
var num_tot = 1; | |
for (var i = 0; i < N; ++i) { | |
const len = arguments[i].length; | |
if (!len) { | |
num_tot = 0; |
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 A = [ | |
["1", "0", "0"], | |
["1", "0", "1"], | |
["1", "1", "0"], | |
["0", "0", "0"], | |
["0", "0", "1"], | |
["0", "1", "0"], | |
["0", "1", "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
git log --since="7 days ago" --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --since="7 days ago" --author="$name" --pretty=tformat: --numstat | awk | |
'{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -; done |
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
(function() { | |
(function(root, factory) { | |
if (typeof define === 'function' && define.amd) { | |
return define('jquery.in-viewport', ['jquery'], function($) { | |
return factory($, root); | |
}); | |
} else { | |
return factory(root.jQuery, root); | |
} | |
})(this, function($, window) { |