Skip to content

Instantly share code, notes, and snippets.

View davidcorbin's full-sized avatar
🔮
Magic

David Corbin davidcorbin

🔮
Magic
View GitHub Profile
❯ make
[build] alure i686-w64-mingw32.static
Failed to build package alure for target i686-w64-mingw32.static!
------------------------------------------------------------
/Volumes/Passport/mxe/tmp-alure-i686-w64-mingw32.static/alure-1.2/include/main.h:61:19: warning: 'BigEndian' defined but not used [-Wunused-variable]
static const bool BigEndian = !LittleEndian;
^
make[3]: *** [CMakeFiles/ALURE32-static.dir/all] Error 2
make[2]: *** [all] Error 2

Keybase proof

I hereby claim:

  • I am davidcorbin on github.
  • I am davidcorbin (https://keybase.io/davidcorbin) on keybase.
  • I have a public key ASAbzxZYzplD0i_FQnXMiVXt4zFuqed689hQE0K1DKb2hQo

To claim this, I am signing this object:

@davidcorbin
davidcorbin / test.java
Created January 26, 2018 13:36
Example of NullPointerException cause by failure to instantiate objects
//
// An example of a NullPointerException caused by a not initializing objects before using them
//
import java.util.ArrayList;
class test {
// An ArrayList is like a vector in c++
// This ArrayList hold Strings
public ArrayList<String> listOfStrings;
#!/bin/bash
set -x
pwd
#cd ~
mkdir temp
mkdir temp/stuff
mkdir temp/stuff/things
mkdir -p temp/stuff/things/orange/apple/pear/grape
@davidcorbin
davidcorbin / gist:577dd4d9e54eaf995b5630a43544cffb
Created October 2, 2018 02:19
Create printable PDF from C file
enscript file.c --line-numbers --highlight=c --color=1 -o - | ps2pdf - output.pdf
@davidcorbin
davidcorbin / RabbitMQ in docker localhost connection issue
Created July 6, 2019 17:08
RabbitMQ in docker localhost connection issue
epmd -kill

Keybase proof

I hereby claim:

  • I am davidcorbin on github.
  • I am davidcorbin (https://keybase.io/davidcorbin) on keybase.
  • I have a public key ASADhybRsZZZVCRrKA0hT2fbk3C1kkycwnlvUTSbVumScQo

To claim this, I am signing this object:

@davidcorbin
davidcorbin / test.py
Last active August 3, 2019 18:44
Setup Jupyter for graphing
## Plot theme
%matplotlib inline
import matplotlib.pyplot as plt
plt.style.use('Solarize_Light2')
#plt.style.available
## High quality plot
%config InlineBackend.figure_format = 'svg'
@davidcorbin
davidcorbin / example.py
Created September 5, 2019 17:41
Interactive Plots in Jupyter
%matplotlib widget
from ipywidgets import *
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, 2 * np.pi)
fig = plt.figure()
ax = fig.add_subplot(1, 1, 1)
line, = ax.plot(x, np.sin(x))
@davidcorbin
davidcorbin / validate.escript
Created October 24, 2019 20:55
Validate Erlang config files
#!/usr/bin/env escript
main([ConfigFile]) ->
{ok, Terms} = file:consult(ConfigFile),
io:format("~p~n",[Terms]).