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
let filter = web3.eth.filter('latest') | |
filter.watch(function(error, result){ | |
if (!error) { | |
let confirmedBlockId = web3.eth.blockNumber - 12 | |
web3.eth.getBlock(confirmedBlockId, function(error, res){ | |
if (!error) { | |
if (res.transactions.length > 0) { | |
res.transactions.forEach(function(txId){ | |
web3.eth.getTransaction(txId, function(error, tx) { | |
if (!error && tx.to == account) { |
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
Talk Jisc Team | |
Day / Hour / 5 mins | |
Start off reading out from lists. Testing, Deployment, Automation. UX. Coupling. | |
Link to talks http://conference.scotlandphp.co.uk/schedule/ | |
All talks captured on video but not up yet afaict. | |
Keynote | |
====== |
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
ngrok http -host-header=rewrite mydomain.com:80 |
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
<?php | |
function mymodule_block($op = 'list', $delta = 0, $edit = array()) { | |
switch($op) { | |
case 'list': | |
$blocks['mymodule_quicktabs'] = array('info' => t('[mymodule] Quicktabs')); | |
return $blocks; | |
break; | |
case 'view': | |
switch ($delta) { |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
<?php | |
/** | |
* Implements hook_menu(). | |
*/ | |
function mymodule_menu() { | |
$items['mymodule/%ctools_js/add'] = array( | |
'page callback' => 'mymodule_node_add_modal_callback', | |
'page arguments' => array(1), | |
'access arguments' => array('access content'), |