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 <stdio.h> | |
#include <opencv2/opencv.hpp> | |
using namespace cv; | |
int main(int argc, char** argv ) | |
{ | |
if ( argc != 2 ) | |
{ | |
printf("usage: DisplayImage.out <Image_Path>\n"); |
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 <stdio.h> | |
#include <opencv2/opencv.hpp> | |
using namespace cv; | |
int main(int argc, char** argv ) | |
{ | |
if ( argc != 2 ) | |
{ | |
printf("usage: DisplayImage.out <Image_Path>\n"); |
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 sub_sync_cols(ss_id1, sheet_name1, col1, ss_id2, sheet_name2, col2) | |
{ | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var activeSheet = ss.getActiveSheet(); | |
var activeSheetName = ss.getActiveSheet().getSheetName(); | |
if( activeSheetName == sheet_name1) | |
{ | |
var activeSheet = ss.getSheetByName(sheet_name1); | |
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 getElementByClass (className, parent) { | |
parent || (parent = document); | |
var descendants= parent.getElementsByTagName('*'), i=-1, e, result=[]; | |
while (e=descendants[++i]) { | |
((' '+(e['class']||e.className)+' ').indexOf(' '+className+' ') > -1) && result.push(e); | |
} | |
return result; | |
} |
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
def check_if_pickable(obj): | |
""" | |
Example | |
------- | |
>>> class A: | |
... def __init__(self): | |
... self.ma = 1 | |
... def methodx(self): | |
... return self.ma | |
... |
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 system = require('system'); | |
var fs = require('fs'); | |
// maybe need run several times | |
var page_url = "https://github.com/login"; | |
var github_login = "your github login"; | |
var github_pw = "your github password"; | |
// see png files in /tmp/*.png |