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
module Test where | |
import Data.Foldable (traverse_) | |
import Control.Monad.Eff | |
import Control.Monad.State | |
import Control.Monad.State.Class | |
import Control.Monad.State.Trans | |
import Control.Monad.Reader | |
import Control.Monad.Reader.Class |
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
module Main where | |
import Control.Monad.Eff | |
import Data.Either | |
import Data.Foreign | |
import Data.Function | |
import Debug.Trace |
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
require ('./globals')(global); // Mixed in Ramda to global here | |
var Task = require ('data.future'), | |
M = require ('control.monads'), | |
State = require ('fantasy-states'), | |
Reader = require ('fantasy-readers'), | |
Tuple2 = require ('fantasy-tuples').Tuple2, | |
Maybe = require ('data.maybe'), | |
ST = State.StateT (Task), | |
App = Reader.ReaderT (ST); |
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 | |
Future = require ('data.future'), | |
Evernote = require ('evernote').Evernote, | |
R = require ('ramda'), | |
M = require ('control.monads'), | |
chain = R.chain, | |
curry = R.curry, | |
compose = R.compose, | |
eq = R.eq, |
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
/** | |
* @kinseybasinger | |
* @chapter3 | |
*/ | |
import java.util.Scanner; | |
public class Salary | |
{ | |
public static void main(String[] args) | |
{ |
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 Future = require ('data.future'), | |
exec = require ('child_process').exec, | |
fs = require ('fs'); | |
module.exports = function (config, app) { | |
var pdf = require ('../../../lib/pdfserver'), | |
db = require ('../../../lib/db')(config), | |
// insertFile :: Connection -> FilePath -> Hash -> Future FileId | |
insertFile = curry (function (db, filePath, hash) { |
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
//(c) Jeremy Branecky, Price Edwards & Company 2006 | |
// | |
//WorkflowManager | |
// | |
//Used to set the starting state and role for an invoice | |
// | |
//public Members: | |
// Function GetPossibleStates(PropertyHMY) dataset - gets all possible states | |
// for property with hmy = PropertyHMY | |
// Function GetStartingState(invoice) integer - gets the starting state for |
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
module Main where | |
import Debug.Trace | |
import Control.Monad.Aff | |
import Control.Monad.Eff | |
import Control.Monad.Eff.Class (liftEff) | |
import Control.Monad.Eff.Exception (message) | |
import Control.Monad.Cont.Trans | |
import Control.Monad.Reader.Class | |
import Control.Monad.Reader.Trans |
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
set-environment DOCKER_CERT_PATH $DOCKER_CERT_PATH | |
set-environment DOCKER_HOST $DOCKER_HOST | |
set-environment DOCKER_TLS_VERIFY $DOCKER_TLS_VERIFY | |
# set prefix key to ctrl+a until I have time to adapt | |
unbind C-b | |
set -g prefix C-s | |
# send the prefix to client inside window (ala nested sessions) | |
bind-key S send-prefix |
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
/* jshint laxbreak: true, laxcomma: true */ | |
/* Create a view using the following: | |
* create view {{resource}}_view as | |
* select * from {{resource}} r1 | |
* where r1.inserted_at = (select r2.inserted_at from {{resource}} r2 | |
* where r1.internalid = r2.internalid | |
* order by CAST(r2.inserted_at as UNSIGNED) desc limit 1); | |
* | |
*/ |