View eMMC transfer state.jssm
machine_name : "eMMC Transfer Mode";
machine_version : 1.0.0;
machine_reference : ["https://www.design-reuse.com/news_img/20101001_2.gif",
"https://www.design-reuse.com/articles/24546/functional-fsm-paths-coverage-systemverilog.html"];
machine_author : "John Haugeland <stonecypher@gmail.com>";
machine_license : MIT;
jssm_version : >= 5.0.0;
graph_layout : dot;
View letor_metrics.py
# (C) Mathieu Blondel, November 2013
# License: BSD 3 clause
import numpy as np
def ranking_precision_score(y_true, y_score, k=10):
"""Precision at rank k
Parameters
View Application.js
'use strict';
var React = require('react');
var ExecutionEnvironment = require('react/lib/ExecutionEnvironment');
var Application = React.createClass({
componentDidMount() {
if (ExecutionEnvironment.canUseDOM) {
document.documentElement.addEventListener('scroll', this.handleScroll);
View aws-s3-sync.sh
#!/usr/bin/env bash
AWS=/home/`whoami`/.local/bin/aws
DATE=`date "+%Y%m%d-%H"`
BUCKET=<change me>
AWS_PROFILE=<change me>
BACKUPDIR=/mnt/share/backup/tshark/
TMPDIR=/tmp/${DATE}/
View app.py
from flask import Flask
app = Flask(__name__)
View github-pages-https-lets-encrypt.md
View basic-$http-cache.js
// this will cache the response indefinitely in a cache created via $cacheFactory
// that cache is shared globally among all $http requests
$http.get('http://pokeapi.co/api/v2/pokemon/1/', {
cache: true
});
View React-Directory-Layout.md

File and folder naming convention for React.js components

Directory Layout #1

/actions/...
/components/common/Link.js
/components/common/...
/components/forms/TextBox.js
/components/forms/TextBox.res/style.css
View React-Directory-Layout.md

File and folder naming convention for React.js components

Directory Layout #1

/actions/...
/components/common/Link.js
/components/common/...
/components/forms/TextBox.js
/components/forms/TextBox.res/style.css