View process-listener.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
const EventEmitter = require('events'), | |
ps = require('xps'); | |
class ProcessListener extends EventEmitter { | |
constructor() { | |
super(); | |
let listenTimeout = 1000; | |
let listenTimeoutId = false; | |
let running = false; | |
let previousProcesses = []; |
View xdebug VSCode settings.json
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": [] |
View xdebug php.ini
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 |
View electron disable notification center
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 => { |
View facebook_log_user_ids
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); |
View demo php - ajax save
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, |
View dabblet.css
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; |
View canon sdk openframeworks
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 |
View gist:5783708
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 git@github.com: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 git@github.com:username/username.github.com.git | |
username.github.com/_deploy$ git pull origin master | |
username.github.com/_deploy$ cd .. | |
username.github.com$ |
View dabblet.css
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
a { color: red; } | |
a[rel='friend'] { color: green; } | |
a[rel~='friend'] { color: blue; } | |
a[lang|='es'] { color: yellow; } |