Skip to content

Instantly share code, notes, and snippets.

View criswell's full-sized avatar
👾
INVASION

Sam Hart criswell

👾
INVASION
View GitHub Profile

Keybase proof

I hereby claim:

  • I am criswell on github.
  • I am criswellious (https://keybase.io/criswellious) on keybase.
  • I have a public key whose fingerprint is 89FF E9C7 EE28 34FF 7A53 BA37 3FE7 3001 8193 6E77

To claim this, I am signing this object:

module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 10,
// font family with optional fallbacks
fontFamily: '"DejaVu Sans Mono", "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.75)',
namespace :book do
desc 'build the book'
task :build do
puts "Generating EPub..."
`bundle exec asciidoctor-epub3 -a stem main.asc`
puts "> Epub output at main.epub"
puts "Generating Mobi..."
`bundle exec asciidoctor-epub3 -a stem -a ebook-format=kf8 main.asc`
puts "> Mobi output at main.mobi"
#!/usr/bin/env bash
FILESY=$(find . -name '*.asc')
for F in $FILESY
do
echo ">> PROCESSING $F"
cat $F | aspell list --personal=./.aspell.en.pws --ignore-case
echo ""
done
@criswell
criswell / BadCode.cs
Created August 25, 2015 01:08
Worst code I've ever written
if (GameConfig.BKGEffectsEnabled && GameConfig.ParticleBKGEffects &&
gameTime.IsRunningSlowly ?
timer_Diffraction > time_PerDiffractionDrawDelay :
timer_Diffraction > time_PerDiffractionDrawNormal
&& diffractionFx.Enabled && diffractionFx.NumParticlesAlive > 0)
{
diffractionFx.PreDraw(gameTime);
timer_Diffraction = 0;
}
sam@rygel ~MY_CWD/noink [noink]
☿ % pip install ipython !7416
Requirement already satisfied (use --upgrade to upgrade): ipython in /usr/lib/python2.7/site-packages
Cleaning up...
(flask)
sam@rygel ~MY_CWD/noink [noink]
☿ % pip install ipython --upgrade !7431
Requirement already up-to-date: ipython in /usr/lib/python2.7/site-packages
Cleaning up...
(flask)
@criswell
criswell / fake_tags.json
Created August 7, 2013 19:16
Some fake tags to use with testing tag import function in omero.
[{
"name" : "Foo001",
"desc" : "A foo was fooed when the food was few.",
"set" : [{
"name" : "Foo001_Sub1",
"desc" : "Substandard substitutes with stubbed tubs."
}, {
"name" : "Foo001_Sub2",
"desc" : "Strained strange trains stray starkly."
}, {
@criswell
criswell / gist:6127870
Created August 1, 2013 02:03
Sample output from tags plugin for omero
1;omero@charity:~/OMERO-CURRENTError printing text
1;omero@charity:~/OMERO-CURRENT/lib/python/omero/plugins[omero@charity plugins]$ cp ~sam/tag.py .
[omero@charity plugins]$ cp ~sam/tag.py .
1;omero@charity:~/OMERO-CURRENTError printing text
Error printing text
1;omero@charity:~/OMERO-CURRENT/lib/python/omero/plugins[omero@charity plugins]$ cp ~sam/tag.py .
[omero@charity plugins]$ cp ~sam/tag.py .
1;omero@charity:~/OMERO-CURRENT[omero@charity OMERO-CURRENT]$ bin/omero tag list_tags -s localhost -u tagging2 -w tagging2
> /opt/omero/OMERO.server-5.0.0f-gs-ice34/lib/python/omero/plugins/tag.py(224)list_tags()
-> if args.tagset: