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 os | |
import sys | |
import json | |
from PIL import Image | |
def main(): | |
# read command line parameter | |
if len(sys.argv) < 2: | |
print("Usage: python create-captions-for-directory.py <image_path>") | |
return |
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
const EventEmitter = require('events'), | |
ps = require('xps'); | |
class ProcessListener extends EventEmitter { | |
constructor() { | |
super(); | |
let listenTimeout = 1000; | |
let listenTimeoutId = false; | |
let running = false; | |
let previousProcesses = []; |
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
"launch": { | |
"configurations": [ | |
{ | |
"name": "Listen for XDebug", | |
"type": "php", | |
"request": "launch", | |
"port": 9000 | |
} | |
], | |
"compounds": [] |
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
[xdebug] | |
zend_extension="/Applications/MAMP/bin/php/php7.2.10/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so" | |
xdebug.remote_enable=1 | |
xdebug.remote_autostart=1 | |
xdebug.remote_host=127.0.0.1 | |
xdebug.remote_port=9000 |
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
const electron = require('electron'); | |
const app = electron.app; | |
const BrowserWindow = electron.BrowserWindow; | |
const path = require('path'); | |
const url = require('url'); | |
let mainWindow; | |
const setNotifactionCenterMode = enabled => { |
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 log = ""; Array.prototype.forEach.call(document.querySelectorAll('a[data-gt]'), function(a){ var gt = JSON.parse(a.dataset.gt); if(!gt.engagement || gt.engagement.eng_type !== "1") return; log += a.innerHTML + ': ' + gt.engagement.eng_tid + "\n"; }); console.log(log); |
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
<?php | |
if(!empty($_POST['elementen'])) { | |
/* | |
//print_r($_POST['elementen']); | |
foreach ($_POST['elementen'] as $value) { | |
//print_r($value); | |
} | |
*/ | |
$result = array( | |
'success' => true, |
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
.redbox { | |
width: 100px; | |
height: 100px; | |
border-style: solid; | |
background-color: red; | |
} | |
.bluebox { | |
width: 100px; | |
height: 100px; |
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
get canon sdk working with openframeworks | |
1. Register as canon developer & download canon sdk | |
2. EDSDK.framework in canon sdk download doesn't seem to be working. Download the latest EOS Utility from http://usa.canon.com/cusa/support/consumer/eos_slr_camera_systems/eos_digital_slr_cameras/ for you camera. You might not have a previous EOS Utility install or a CD. You can force the installer to install EOS utility: | |
1/ Copy the updater app from the dmg to your desktop | |
2/ Right click and choose Show Package Contents… | |
3/ Delete the file Contents/Resources/Info.datx | |
4/ After that run the updater app again. You should be able to install the EOS Utility |
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
$ git clone [email protected]:username/username.github.com.git | |
$ cd username.github.com | |
username.github.com$ git checkout source | |
username.github.com$ mkdir _deploy | |
username.github.com$ cd _deploy | |
username.github.com/_deploy$ git init | |
username.github.com/_deploy$ git remote add origin [email protected]:username/username.github.com.git | |
username.github.com/_deploy$ git pull origin master | |
username.github.com/_deploy$ cd .. | |
username.github.com$ |
NewerOlder