Skip to content

Instantly share code, notes, and snippets.

@imalsogreg
imalsogreg / FilesSnapshot.xml
Created April 4, 2016 02:22
Chutzpah v4.2.0 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\Chutzpah\AntiXssLibrary.dll" checksum="4B8BDFC24B1F455E66A7640F7D25E626" />
<file path="C:\ProgramData\chocolatey\lib\Chutzpah\chocolateyInstall.ps1" checksum="0C5987D9F7A98A5461D7C1669447927D" />
<file path="C:\ProgramData\chocolatey\lib\Chutzpah\Chutzpah.4.2.0.zip.txt" checksum="1F80DFD7A2BB5B42F2D827C0B68A5A21" />
<file path="C:\ProgramData\chocolatey\lib\Chutzpah\chutzpah.console.exe" checksum="C26D86B3DF0044E8D3D6184E6E496631" />
<file path="C:\ProgramData\chocolatey\lib\Chutzpah\chutzpah.console.vshost.exe" checksum="7A0C3AB69ECB9D2595A1595673B2CCED" />
<file path="C:\ProgramData\chocolatey\lib\Chutzpah\chutzpah.console.vshost.exe.manifest" checksum="A19A2658BA69030C6AC9D11FD7D7E3C1" />
<file path="C:\ProgramData\chocolatey\lib\Chutzpah\chutzpah.dll" checksum="691F1E1B5EAB52
@imalsogreg
imalsogreg / Makefile.config
Created February 19, 2016 20:00
my caffe makefile.config
## Refer to http://caffe.berkeleyvision.org/installation.html
# Contributions simplifying and improving our build system are welcome!
# cuDNN acceleration switch (uncomment to build with cuDNN).
# USE_CUDNN := 1
# CPU-only switch (uncomment to build without GPU support).
CPU_ONLY := 1
# uncomment to disable IO dependencies and corresponding data layers
import websocket
try:
import thread
except ImportError: #TODO use Threading instead of _thread in python3
import _thread as thread
import time
import sys
def on_message(ws, message):
from flask import Flask
import os
import subprocess
from calculation import fullrun
app = Flask(__name__)
okCmds = frozenset(["cowsay","doubleit"])
@app.route('/<cmd>/<arg>')
def runCmd(cmd,arg):
@imalsogreg
imalsogreg / cabal.config
Last active December 16, 2015 23:08
Cabal freeze from a machine producing bad snap executables
constraints: HUnit ==1.3.0.0,
array ==0.5.1.0,
attoparsec ==0.13.0.1,
base ==4.8.1.0,
binary ==0.7.5.0,
blaze-builder ==0.4.0.1,
bytestring ==0.10.6.0,
bytestring-builder ==0.10.6.0.0,
case-insensitive ==1.2.0.5,
clock ==0.5.2,
@imalsogreg
imalsogreg / cabal.config
Created December 16, 2015 21:19
cabal freeze Ubuntu desktop producing working snap servers
constraints: HUnit ==1.2.5.2,
array ==0.5.1.0,
attoparsec ==0.13.0.1,
base ==4.8.1.0,
binary ==0.7.5.0,
blaze-builder ==0.4.0.1,
rts ==1.0,
bytestring ==0.10.6.0,
bytestring-builder ==0.10.6.0.0,
case-insensitive ==1.2.0.4,
@imalsogreg
imalsogreg / Main.hs
Created December 15, 2015 05:34
Use of Reflex.Dom.Contrib.Widgets.ButtonGroup
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE RecursiveDo #-}
module Main where
import Data.Bool
import Data.Char
import Data.Default
@imalsogreg
imalsogreg / beforeafter.html
Created November 4, 2015 14:22
Sticking together some example code from http://codepen.io/ace/pen/BqEer to make a before-after slider
<!DOCTYPE HTML>
<html>
<head>
<!-- Import jQuery library -->
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<!-- Inline style-->
<!-- Adjust width/height according to picture size -->

Keybase proof

I hereby claim:

  • I am imalsogreg on github.
  • I am imalsogreg (https://keybase.io/imalsogreg) on keybase.
  • I have a public key whose fingerprint is 85E5 FA73 674F A3D2 EE78 26D4 2966 5DFD 258A A249

To claim this, I am signing this object:

{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TemplateHaskell #-}
import Control.Monad (mzero)
import Control.Monad.IO.Class (liftIO)