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
| function AstNode(operator, left, right) { | |
| this.operator = operator; | |
| this.left = left; | |
| this.right = right; | |
| } | |
| AstNode.prototype.evaluate = function() { | |
| return this.operator(this.left.evaluate(), this.right.evaluate()); | |
| }; |
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 | |
| namespace BeerReview\UserBundle\Model; | |
| use Doctrine\ORM\Mapping as ORM, | |
| FOS\UserBundle\Entity\User as BaseUser; | |
| /** | |
| * BeerReview\UserBundle\Model\User | |
| * |
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 axon = require('axon'), socket = axon.socket('rep'); | |
| socket.format('json'); | |
| socket.connect(22153); | |
| socket.on('message', function(route, payload, reply) { | |
| console.log(route, payload); | |
| reply({}); | |
| }); |
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 axon = require('axon'), socket = axon.socket('req'); | |
| socket.format('json'); | |
| socket.bind(22153); | |
| var payload = { | |
| "applicationId": "509508637f8b9ac804000000", | |
| "secretKey": "mandoorhandhookcardoor", | |
| "context": { | |
| "Property1": "crapweasel" | |
| }, |
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
| /** | |
| * User: rfink <[email protected]> | |
| * Date: 12/20/13 | |
| * Time: 12:00 PM | |
| */ | |
| package main | |
| import ( | |
| //"./board" | |
| "fmt" |
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
| #!/bin/bash | |
| # install_cltools.sh | |
| # This script will install Apple Command Line Tools in | |
| # an automated fashion after downloading the install | |
| # dmg from an accessible web server. | |
| # This is a webserver from which the installers can be | |
| # downloaded. Unfortunately, Apple has a lame habit | |
| # of only making these utilities available for download |