I hereby claim:
- I am jes on github.
- I am jamesstanley (https://keybase.io/jamesstanley) on keybase.
- I have a public key whose fingerprint is DFA2 CEB9 3F23 7CC5 1F35 3CDE 58AB 852A 0A2C C137
To claim this, I am signing this object:
/* glCreateProgram test case */ | |
#include "GLee.h" | |
#include <stdio.h> | |
#include <GL/glut.h> | |
int main(int argc, char **argv) { | |
glutInit(&argc, argv); | |
glutInitDisplayString("rgb double depth>=32"); |
/* lighting vertex shader (not quite phong) | |
* http://www.lighthouse3d.com/opengl/glsl/index.php/index.php?ogldir1 | |
* James Stanley 2011 | |
*/ | |
#version 120 | |
void main() { | |
vec3 normal, lightDir; | |
vec4 diffuse, ambient; |
#!/bin/sh | |
#Take a screenshot, upload it to outpost, and write to IRC | |
#James Stanley 2010 | |
filename=`date +images/%Y%m%d-%H%M.png` | |
scrot /home/james/$filename | |
scp /home/james/$filename pillbox:public_html/$filename & |
Normal frame: | |
:: 0.206600 ms | |
:: 0.212000 ms | |
:: 0.216400 ms | |
:: 0.218600 ms | |
:: 0.222000 ms | |
(now glutSwapBuffers happens) | |
:: 7.620100 ms | |
7.621300 ms |
template < TerminalEnumType template_type > | |
class Terminal : public JoeLang::Parser::Token | |
{ | |
public: | |
Terminal() = default; | |
virtual ~Terminal() = default; | |
static Terminal< template_type >* Parse( vector<Token*>::const_iterator& stream_begin, vector<Token*>::const_iterator stream_end ); | |
static TokenEnumType m_tokenType = template_type; |
template <std::string literal, std::string name> | |
std::unique_ptr< LiteralTerminal< literal, name > > LiteralTerminal::Parse( std::string::const_iterator& stream_begin, std::string::const_iterator stream_end ) | |
{ | |
if( ( end - begin ) < literal.size() ) | |
{ | |
if( std::equal( literal.begin(), literal.end(), stream_begin ) ) | |
{ | |
stream_begin += literal.size(); | |
return std::unique_ptr< LiteralTerminal< literal, name > >( new LiteralTerminal< literal, name > ); | |
} |
template <std::string literal, std::string name> | |
std::unique_ptr< LiteralTerminal< literal, name > > LiteralTerminal::Parse( std::string::const_iterator& stream_begin, std::string::const_iterator stream_end ) | |
{ | |
if( ( stream_end - stream_begin ) < literal.size() ) | |
{ | |
if( std::equal( literal.begin(), literal.end(), stream_begin ) ) | |
{ | |
stream_begin += literal.size(); | |
return std::unique_ptr< LiteralTerminal< literal, name > >( new LiteralTerminal< literal, name > ); | |
} |
#!/bin/sh | |
while read domain | |
do | |
(addr=`dig +short $domain | head -n1`; /bin/echo -e "$domain\t$addr") & | |
done | |
wait |
I hereby claim:
To claim this, I am signing this object:
/* | |
Speedo converter by jes | |
How to re-program the board: | |
Orient the board so the programming header is at top left and the LED is at bottom left. | |
Pins are as follows, from top: | |
1. Reset | |
2. 0 (RX) | |
3. 1 (TX) | |
4. +5V |