Skip to content

Instantly share code, notes, and snippets.

@jaredly
jaredly / Perceptron.ipynb
Created January 30, 2014 06:14
Submission Perceptron Notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jaredly
jaredly / neovim-variations-on-L.svg
Created February 25, 2014 19:42
Variations on my neovim #L
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am jaredly on github.
  • I am jaredly (https://keybase.io/jaredly) on keybase.
  • I have a public key whose fingerprint is 8F30 2819 1F60 3454 D682 FA0E 715D 5E7A 6D0E C90A

To claim this, I am signing this object:

var rows = [];
for (var i=0; i<items.length; i+=2){
rows.push(<div className="parent-row">
<div className="parent-card">
{items[i]}
</div>
<div className="parent-card">
{items[i+1]}
var MyMixin = require('my-mixin')
// way one
var App = React.createClass({
mixins: [MyMixin],
stuffForMyMixin: {
aVariable: 12,
@jaredly
jaredly / Document.nm
Last active August 29, 2015 14:07
Playing in the JS Sandbox
{
"created": 1416954835215,
"modified": 1416954835215,
"content": "Playing in the JS Sandbox",
"children": [
{
"content": "Notification API",
"children": [
{
"content": "var notification = new Notification(\"Execution Finished\", {\n body: \"Time taken: 20:00\"\n})",
@jaredly
jaredly / compilecompile.rs
Created November 18, 2014 16:23
simple example of compiling rust
extern crate rustc;
extern crate syntax;
use rustc::driver::config::{basic_options, build_configuration};
use rustc::driver::session::{build_session};
use rustc::driver::driver::{StrInput, compile_input};
use syntax::diagnostics;
fn main() {
let src = "fn main() {println!(\"Awesome\");}";
@jaredly
jaredly / ex.rs
Created November 19, 2014 18:55
failing to be sized?
trait A {
fn one(&self);
}
trait B {
fn two(&self);
}
/** Dies because it wants the "Sized" trait
#[deriving(Clone)]
#[deriving(Decodable, Encodable)]
#[deriving(Show)]
struct DoneCompiled {
compileError: String,
stdout: String,
stderr: String,
}
@jaredly
jaredly / mem.rs
Last active August 29, 2015 14:10
Rust Optimization Opportunity
use std::kinds::marker::NoCopy;
struct WillMove {
boxed: NoCopy,
large: [uint, ..100000],
}
/*******************************/
/** VARIANT 1 : with movement **/