Scan the site and get the sitemap, and get config files to let user use regex to define priorities. inspired by Site Map Generator by Vladimir Toncar.
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
for i in {1..16}; do ssh compute-0-${i} /share/apps/cuda/samples/1_Utilities/deviceQuery/deviceQuery; done |
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
X 38 #July 1st Taxi | |
$ (0, []), | |
T 6.74 #July 7th Super Fresh Asian Market | |
$ (0, []), | |
T 37.922 #July 7th Superstore | |
$ (10.85, [M, C, W]), (0, []), | |
M 20 #July 9th 711 |
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
#include <iostream> | |
#include <vector> | |
#include <string> | |
using namespace std; | |
typedef struct node_t { | |
vector<int> values; | |
vector<node_t *> e_values; | |
int evaluate; |
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
// | |
// main.cpp | |
// testing1 | |
// | |
// Created by Xinhong LIU on 17/5/14. | |
// Copyright (c) 2014 Xinhong LIU. All rights reserved. | |
// | |
#include <iostream> | |
#include <fstream> |
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
#include <stdio.h> | |
#include <string.h> | |
//#define DEBUG | |
int n; | |
int w; | |
int histo[12]; // since at most 10 intervals | |
int main() { |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
int main() { | |
int case_n; | |
scanf("%d", &case_n); | |
while (case_n--) { | |
int v_a, v_b; |
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
#include <stdio.h> | |
#define INFINITE 18446744073709551615 | |
typedef unsigned long long ull; | |
int n; | |
ull flow[21]; | |
ull cost[21]; | |
ull minimal_cost; |
When memory scares
- Memory ballooning will ask the virtual machine to select it's idle memory pages to be swapped.
- Memory swapping will brutally picks pages at random from the virtual machine.
So memory swapping often occurs when memory ballooning cannot effective free the memory, it will impacts the performance more.
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
$(function(argument) { | |
// set target=_blank for all external links | |
// credit: http://stackoverflow.com/questions/2910946/test-if-links-are-external-with-jquery-javascript | |
var nodes = document.getElementsByTagName("a"), i = nodes.length; | |
var regExp = new RegExp("//" + location.host + "($|/)"); | |
while (i--) { | |
var href = nodes[i].href; | |
var isLocal = (href.substring(0,4) === "http") ? regExp.test(href) : true; | |
if (!isLocal) | |
nodes[i].target = "_blank"; |
OlderNewer