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
let osc, env, analyzer; | |
let notes = [220, 330, 120]; | |
let pad_size = 100; | |
let pad1; | |
let pad2; | |
function setup() { | |
createCanvas(710, 200); | |
pad1 = new Pad(220, 100, 100); | |
pad2 = new Pad(330, 200, 200); |
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 x; | |
var y; | |
var xspeed; | |
var yspeed; | |
// Our setup function. | |
function setup() { | |
createCanvas(800, 600); | |
background("#000000"); |
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 React from 'react'; | |
/** | |
* Super simple example of a React component consuming a Drupal node exposed via the core REST functionality in Drupal 8. | |
*/ | |
export default class DrupalNode extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { |
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
Verifying my Blockstack ID is secured with the address 19pMr7PMm8bVyCeCN7xbNbmxfpiqH51k8n https://explorer.blockstack.org/address/19pMr7PMm8bVyCeCN7xbNbmxfpiqH51k8n |
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
$conf['mail_system'] = array( | |
'default-system' => 'DevelMailLog', | |
); | |
$conf['devel_debug_mail_directory'] = '/tmp/develmail'; |
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 href="http://www.adctoday.com/diagnostix/embed" target="_blank" onClick="window.open(this.href,'mywindow','width=920,height=700,resizable=yes,location=no,scrollbars=yes'); return false;"><img src="http://www.adctoday.com/sites/default/files/embed_button.png"></a> |
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 | |
function myblock1() { | |
$blocks = array(); | |
$blocks['myblock1'] = array( | |
'info' => t("Block 1"), | |
); | |
//... |
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
### Keybase proof | |
I hereby claim: | |
* I am nickgs on github. | |
* I am nickgs (https://keybase.io/nickgs) on keybase. | |
* I have a public key whose fingerprint is 030E 3C42 3D23 3948 CF5B D186 CF31 48D2 87E5 915F | |
To claim this, I am signing this object: |
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
//example of building a link from an text field. | |
$nid = 1; | |
$node = node_load($nid); | |
$field = field_get_items('node', $node, 'field_link'); | |
$link = array( | |
'#theme' => 'link', | |
'#text' => $field[0]['safe_value'], | |
'#path' => $field[0]['safe_value'], | |
'#options' => array( |
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 href="http://www.adctoday.com/diagnostix/embed" target="_blank" onClick="window.open(this.href,'mywindow','width=920,height=700,resizable=yes,location=no,scrollbars=yes'); return false;"><img src="http://www.adctoday.com/sites/default/files/embed_button.png"></a> |