Skip to content

Instantly share code, notes, and snippets.

Avatar

Ian Fiske ianfiske

  • NextEra Analytics
  • Jacksonville, FL
View GitHub Profile
View gist:535c79c8782b5d4cfdc7094faeeaa7a7
This file has been truncated, but you can view the full file.
[ Info: Starting the Julia Language Server
[ Info: Received new data from Julia Symbol Server.
signal (15): Terminated: 15
in expression starting at /Users/ifiske/.vscode/extensions/julialang.language-julia-0.14.0-beta.3/scripts/languageserver/main.jl:11
sweep_page at /Users/julia/buildbot/worker/package_macos64/build/src/gc.c:1209 [inlined]
sweep_pool_page at /Users/julia/buildbot/worker/package_macos64/build/src/gc.c:1277 [inlined]
sweep_pool_pagetable0 at /Users/julia/buildbot/worker/package_macos64/build/src/gc.c:1297 [inlined]
sweep_pool_pagetable1 at /Users/julia/buildbot/worker/package_macos64/build/src/gc.c:1317 [inlined]
@ianfiske
ianfiske / parametron_test_module.jl
Created May 24, 2019
Test Module for Parametron
View parametron_test_module.jl
module TestParametron
# create a MathOptInterface optimizer instance
using OSQP
optimizer = OSQP.Optimizer()
# create a Parametron.Model, which holds problem information
using Parametron
using Random, LinearAlgebra
View docker_run_gpu.sh
#!/usr/bin/env bash
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@ianfiske
ianfiske / readtemp.nut
Last active Apr 17, 2016
Read temperature from DS18B20 on Electric Imp
View readtemp.nut
#require "Onewire.class.nut:1.0.0"
ow <- Onewire(hardware.uart12);
power <- hardware.pin8;
power.configure(ANALOG_IN);
local success = ow.init();
if (!success) {
// Report error. Note if the Onewire object instantiated in
// debug mode, the object will report errors
@ianfiske
ianfiske / gist:9bfcd388dcd592d976e4
Created Jan 21, 2015
Python wrapper class for keyval stores and pyrocksdb
View gist:9bfcd388dcd592d976e4
import cPickle
import rocksdb
class KeyValDB(object):
@staticmethod
def get_database(db_type, path):
if db_type == 'shelve':
return ShelveDB(path)
elif db_type == 'rocksdb':