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
var phantom=require('node-phantom'); | |
phantom.create(function(err,ph) { | |
ph.createPage(function(err,page) { | |
page.setFn('onInitialized', function() { | |
console.log("In initialized"); | |
page.evaluate(function(domContentLoadedMsg) { | |
document.addEventListener('DOMContentLoaded', function() { | |
window.callPhantom('DOMContentLoaded'); |
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
var fs = require('fs'), | |
casper = require('casper').create({ | |
verbose: true, | |
logLevel: "debug", | |
pageSettings: { | |
userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/25.0.1349.2 Safari/537.21' | |
}, | |
clientScripts: ['jquery.min.js'] | |
}); |
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 <cstdio> | |
#include <vector> | |
#include <utility> | |
using namespace std; | |
int in[9][9] = {{9, 0, 5, 0, 0, 7, 8, 0, 1}, | |
{0, 0, 6, 5, 0, 0, 3, 0, 0}, | |
{0, 3, 0, 6, 0, 9, 0, 0, 0}, | |
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
OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64", | |
"elf64-x86-64") | |
OUTPUT_ARCH(i386:x86-64) | |
ENTRY(_start) | |
SEARCH_DIR("/usr/x86_64-linux-gnu/lib64"); SEARCH_DIR("=/usr/local/lib/x86_64-linux-gnu"); SEARCH_DIR("=/usr/local/lib64"); SEARCH_DIR("=/lib/x86_64-linux-gnu"); SEARCH_DIR("=/lib64"); SEARCH_DIR("=/usr/lib/x86_64-linux-gnu"); SEARCH_DIR("=/usr/lib64"); SEARCH_DIR("=/usr/local/lib"); SEARCH_DIR("=/lib"); SEARCH_DIR("=/usr/lib"); | |
MEMORY | |
{ | |
writablemem (wx) : ORIGIN = 0x0000000000400270, LENGTH = 0x72D | |
} |
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
#!/bin/sh | |
# Abort immediately if any command exists with a non-zero code. | |
set -e | |
# Do we need 'sudo'? | |
sudo= | |
if [ "$( id -u )" != 0 ]; then | |
sudo='sudo' | |
fi |
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
{ | |
"type": "mongodb", | |
"mongodb": { | |
"db": "mydb76", | |
"collection": "mycollec76", | |
"options": { | |
"exclude_fields": ["exclude-1", "exclude-2"] | |
} | |
}, | |
"index": { |
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
{ | |
"type": "mongodb", | |
"mongodb": { | |
"db": "mydb76", | |
"collection": "mycollec76", | |
"options": { | |
"exclude_fields": ["exclude-1", "exclude-2"] | |
} | |
}, | |
"index": { |
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
$('#searchinput').autocomplete({ | |
source: function(req,res) { | |
console.log("req:" + req.term) | |
$.ajax({ | |
// url: "http://souri-mediaserver.ddns.net:5000/ac/"+req.term, | |
url: "http://192.168.1.111:5000/ac/" + link[3]+ "/" +req.term, | |
dataType: "jsonp", | |
type: "GET", | |
data: { | |
term: req.term |
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
Dim dialog As New OpenFileDialog() | |
If DialogResult.OK = dialog.ShowDialog Then | |
TextBox1.Text = dialog.FileName | |
End If |
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
import math | |
import pprint | |
# import matplotlib.pyplot as plt | |
import matplotlib as mpl | |
from mpl_toolkits.mplot3d import Axes3D | |
import matplotlib.pyplot as plt | |
from rotanimate import rotanimate | |
import numpy as np | |
OlderNewer