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
grep -rl 'search' ./* | xargs sed -i '' -e 's/search/replace/g' |
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
const turnMachine = Machine({ | |
id: 'turn', | |
initial: 'beginning', | |
states: { | |
beginning: { | |
initial: 'untap', | |
states: { | |
untap: { | |
entry: sendParent({type: 'UNTAP_STEP_START'}), | |
exit: sendParent({type: 'UNTAP_STEP_END'}), |
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
const pubsubMachine = Machine({ | |
id: 'pubsub', | |
initial: 'listening', | |
type: 'parallel', | |
context: { | |
queue: [], | |
subscriptions: {}, | |
}, | |
states: { | |
listening: { |
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
/** | |
* Implements hook_token_info(). | |
*/ | |
function modulename_token_info() { | |
// Add tokens. | |
$info['types']['token-type'] = array( | |
'name' => t('ModuleName Tokens'), | |
'description' => t('ModuleName custom tokens'), | |
); |
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
$ vagrant provision | |
==> wfmcom: [vagrant-hostsupdater] Checking for host entries | |
==> wfmcom: [vagrant-hostsupdater] found entry for: 192.168.88.88 local.wholefoodsmarket.com | |
==> wfmcom: [vagrant-hostsupdater] found entry for: 192.168.88.88 adminer.local.wholefoodsmarket.com | |
==> wfmcom: [vagrant-hostsupdater] found entry for: 192.168.88.88 xhprof.local.wholefoodsmarket.com | |
==> wfmcom: [vagrant-hostsupdater] found entry for: 192.168.88.88 pimpmylog.local.wholefoodsmarket.com | |
==> wfmcom: [vagrant-hostsupdater] found entry for: 192.168.88.88 dashboard.local.wholefoodsmarket.com | |
==> wfmcom: Running provisioner: ansible... | |
wfmcom: Running ansible-playbook... |
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
SELECT field_geo_data_lat, field_geo_data_lon, SQRT( | |
POW(69.1 * (field_geo_data_lat - [30.2707]), 2) + | |
POW(69.1 * ([-97.7533] - field_geo_data_lon) * COS(latitude / 57.3), 2)) AS distance | |
FROM field_data_field_geo_data HAVING distance < 25 ORDER BY distance; |
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 https = require('https'), | |
exec = require('child_process').exec; | |
// Check every 5 minutes | |
var checkDelay = 60000 * 5; | |
// Store the previous response body for comparison | |
var lastBody = null; | |
var checkTickets = function() |
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
SELECT f.field_store_name_value as "Store Path", | |
n.title as "Store Name", | |
n.nid as "Drupal Node ID" | |
FROM field_data_field_store_name f | |
LEFT JOIN node n | |
ON f.entity_id = n.nid | |
; |
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
//This isn't quite working yet. | |
int led = 13; //led is on pin 13 | |
String text = "Hello World!"; | |
int basetime = 100; | |
int pause = basetime; | |
int shortgap = basetime * 3; | |
int mediumgap = basetime * 7 - pause; | |
String translatetext(char character) { |
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
/** | |
* Casper.js testing test | |
*/ | |
var testSuite = { | |
config: { | |
baseUrl: 'http://www.wholefoodsmarket.com', | |
}, | |
googleTest: function(){ |
NewerOlder