Skip to content

Instantly share code, notes, and snippets.

@joefiorini
joefiorini / config.el
Created April 3, 2017 01:49
Spacemacs reason-mode layer
(spacemacs|define-jump-handlers reason-mode)
#!/usr/bin/env fish
clear
set -l num_runs 0
while true;
echo "Executing: $argv"
eval "$argv"
package fitwell.api
import akka.http.scaladsl.model.HttpResponse
import akka.http.scaladsl.server.Directives._
import akka.http.scaladsl.model.StatusCodes._
import scala.concurrent.ExecutionContextExecutor
import sangria.parser.QueryParser
import sangria.execution.Executor
{
"presets": ["es2015", "stage-2", "react"],
"plugins": [
"react-hot-loader/babel",
"transform-function-bind",
"transform-class-properties",
"transform-export-extensions",
],
"env": {
"backend": {
const fs = require('fs');
var SerialPort = require('serialport').SerialPort;
var serialPort = new SerialPort(process.env['DEVICE'], {
baudRate: 19200,
});
const contents = fs.readFileSync(process.env.COMMANDS, { encoding: 'utf-8' });
const commands = contents.split('\n');
function runCommand(command, rest, done) {
⊕ cat .projectile (jf-db-docviewer-integration-tests)
-/*/log
-/*/tmp
-/*/vendor
-/*/public
-/*/node_modules
-/*/.gem
-/.gem⏎
diff --git a/ops/client/src/toolkits-docviewer/index.js b/ops/client/src/toolkits-docviewer/index.js
index af11735..f3e3511 100644
--- a/ops/client/src/toolkits-docviewer/index.js
+++ b/ops/client/src/toolkits-docviewer/index.js
@@ -163,7 +163,7 @@ class DocviewerContainer extends Component {
addAnnotation: this.addAnotation.bind(this),
removeAnnotation: this.removeAnnotation.bind(this)}}/>
{hasFields &&
- <EntitiesForm {...{selectedField, annotations, onFocus: this.onFocus.bind(this)}}/>
+ <EntitiesForm {...{selectedField, annotations, onFocus: this.onFocus.bind(this)}} showSaveButton={true}/>
@joefiorini
joefiorini / sass-tester-example.scss
Last active December 1, 2015 21:51
A proof of concept I created in Sept of 2012 showing how unit testing of SCSS code could work. This code was runnable, or close to it, with a runner I wrote, but is not in good enough shape to post.
@import "../base/functions";
$base-size: 10px;
@function to-equal($actual, $expected){
@if $expected == $actual {
@return true;
} @else {
@return $actual;
}
}
@joefiorini
joefiorini / Global.js
Last active October 26, 2015 20:29
Named Exports
import {a, b, c} from 'Package'
window.a = a;
window.b = b;
window.c = c;
RUBY_VERSION=2.1.2
RUBY_ENGINE=ruby
export RUBY_ROOT=$(pwd)/vruby/ruby-$RUBY_VERSION
export GEM_HOME="./.gem/$RUBY_ENGINE/$RUBY_VERSION"
export GEM_PATH=$GEM_HOME
export PATH=$GEM_HOME/bin:$RUBY_ROOT/bin:$PATH