Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Ian Walter ianwalter

🎯
Focusing
Block or report user

Report or block ianwalter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View cla.md

Thank you for your interest in Atlas Genetics (the "Company"). In order to clarify the intellectual property license granted with Contributions from any person or entity, the Company must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of the Company and its users; it does not change your rights to use your own Contributions for any other purpose.

You accept and agree to the following terms and conditions for Your present and future Contributions submitted to the Company. In return, the Company shall not use Your Contributions in a way that is contrary to the public benefit or inconsistent with its bylaws in effect at the time of the Contribution. Except for the license granted herein to the Company and recipients of software distributed by the Company, You reserve all right, title, and interest in and to Your Contributions.

  1. Definit
@ianwalter
ianwalter / gist:df64c3026f4a18dcccebae89d5e882db
Created May 4, 2018
/Users/ian/.npm/_logs/2018-05-04T02_47_11_135Z-debug.log
View gist:df64c3026f4a18dcccebae89d5e882db
This file has been truncated, but you can view the full file.
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/10.0.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli '--save',
1 verbose cli 'express-rate-limit' ]
2 info using npm@6.0.0
3 info using node@v10.0.0
4 verbose npm-session d418316d1a67e8d7
View gist:8acd9cacfd899171b285ef117e1df368
Verifying that "ianwalter.id" is my Blockstack ID. https://onename.com/ianwalter
View keybase.md

Keybase proof

I hereby claim:

  • I am ianwalter on github.
  • I am ianwalter (https://keybase.io/ianwalter) on keybase.
  • I have a public key whose fingerprint is 8F2B 2DB3 A22C 8247 949F 5ACF 3F89 21E7 B5FF FFB4

To claim this, I am signing this object:

@ianwalter
ianwalter / EvaluateStock.java
Created Apr 26, 2013
An example of how to use Mozilla Rhino to execute JavaScript within Java.
View EvaluateStock.java
package com.iankwalter.rhinostockexample;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.Scriptable;
import org.mozilla.javascript.ScriptableObject;
/**
* An example of how to use Mozilla Rhino to execute JavaScript within Java
*
* @author Ian Kennington Walter
@ianwalter
ianwalter / evaluate-stock.js
Created Apr 26, 2013
JavaScript code that will evaluate whether a Stock is undervalued.
View evaluate-stock.js
var earnings = stock.getNetIncome() * 10;
earnings += (stock.getTotalCash() - stock.getTotalDebt());
if (earnings > stock.getMarketCap()) {
stock.setUndervalued(true);
} else {
stock.setUndervalued(false);
}
@ianwalter
ianwalter / Stock.java
Created Apr 26, 2013
Models a Stock for the purpose of this example.
View Stock.java
package com.iankwalter.rhinostockexample;
/**
* Models a Stock for the purpose of this example.
*
* @author Ian Kennington Walter
*/
public class Stock {
Double netIncome;
View SplClassLoader.php
<?php
/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.
*
* http://groups.google.com/group/php-standards/web/final-proposal
*
* // Example which loads classes for the Doctrine Common package in the
* // Doctrine\Common namespace.
View async-example.js
async.parallel({
a: function(callback) {
fs.readFile('a.html', 'utf8', function(err, a) {
if (err) callback(err);
console.log('read a');
callback(null, a);
});
},
b: function(callback) {
You can’t perform that action at this time.