Skip to content

Instantly share code, notes, and snippets.

View notjosh's full-sized avatar

Joshua May notjosh

View GitHub Profile
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE hheaTable [
<!ELEMENT hheaTable EMPTY>
<!ATTLIST hheaTable versionMajor CDATA #IMPLIED
versionMinor CDATA #IMPLIED
ascender CDATA #IMPLIED
descender CDATA #IMPLIED
lineGap CDATA #IMPLIED
advanceWidthMax CDATA #IMPLIED
minLeftSideBearing CDATA #IMPLIED
uniform sampler2D inputImageTexture;
varying vec2 textureCoordinate;
uniform float sigma; // default: 6.
uniform float delta; // default: 2.
uniform int imageSizeX;
uniform int imageSizeY;
vec4 bilateral(vec2 coord)
/* config.h. Generated by cmake from config.h.cmake */
/* Indicates the byte order of your target system */
/* 1 if little-endian, 2 if big-endian. */
#define SYSTEM_BYTEORDER 1
/* Defined if your compiler supports some byte swap functions */
/* #undef HAVE_GCC_BYTESWAP_16 */
#define HAVE_GCC_BYTESWAP_32 1
#define HAVE_GCC_BYTESWAP_64 1
[18:54:09] <TEKPT> how can i define a class variable to be = x ?
[18:54:18] <TEKPT> {
[18:54:22] <TEKPT> int k = 5;
[18:54:23] <TEKPT> }
[18:54:26] <TEKPT> does not wantz

Keybase proof

I hereby claim:

  • I am notjosh on github.
  • I am notjosh (https://keybase.io/notjosh) on keybase.
  • I have a public key whose fingerprint is 39A3 94AE F58C E5B2 BA80 E667 4F7C B5F4 47EA CA40

To claim this, I am signing this object:

@notjosh
notjosh / lolcommitsbundler.rb
Created April 10, 2014 13:57
Crude lolcommits HTML generator
#!/usr/bin/env ruby
require 'fileutils'
$PROJECT = Dir.pwd.split(File::SEPARATOR)[-1]
$HOME = "#{Dir.home}/.lolcommits/#{$PROJECT}"
$OUT_PATH = "#{Dir.pwd}/lolcommits"
map = `git log --pretty=format:"%H %ad" --date=iso | tail -r | sed 's/ [\+\-][0-9][0-9][0-9][0-9]$//' | sed 's/[:\-]//g' | awk '{print substr ($1, 0, 11), $2"-"$3}'`.split("\n")
@notjosh
notjosh / output.txt
Created September 15, 2014 18:58
Basis output
(474, 'chunks found')
first timestamp: 81457259
0: 0x29
60: 0x29
120: 0x29
180: 0x29
240: 0x29
300: 0x29
360: 0x29
420: 0x29
@notjosh
notjosh / gist:5922fb9063c2b2326321
Created March 11, 2015 19:15
CBL Proxy information
(lldb) po proxy
{
kCFProxyHostNameKey = "127.0.0.1";
kCFProxyPortNumberKey = 8888;
kCFProxyTypeKey = kCFProxyTypeHTTP;
}
(lldb) po proxySettings
{
ExceptionsList = (
# ...
post_install do |rep|
# merge Pods acknowledgements with submodules/externals acknowledgements
merge_acknowledgements({
:base => 'Clue/Resources/Settings.bundle/External-Acknowledgments.plist',
:include => 'Pods/Target Support Files/Pods-Clue/Pods-Clue-acknowledgements.plist',
},
'Clue/Resources/Settings.bundle/Acknowledgments.plist',
)
@notjosh
notjosh / sc-to-junit.sh
Last active January 25, 2016 18:38
spacecommander build formatter, that creates JUnit-ish output from piped `format-objc-mobuild` command output for Jenkins to consume, and GitHub pull request builder to show
#!/bin/bash
files=($(grep -o "git add '.*';$" | awk -F "'" '{print $2}'))
count=${#files[@]}
timestamp=$(date +%Y-%m-%dT%H:%M:%S%z)
cat <<EOT
<testsuites>
<testsuite name="[ Space Commander]" tests="$count" failures="$count" timestamp="$timestamp">
EOT