{{ message }}

Instantly share code, notes, and snippets.

# Jimmy Tangtalyian

Last active Mar 9, 2017
View keybase.md

### Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

Last active Mar 27, 2017
View gist:bdc10c7a77f4488aeb988ddcf943459a
 ﻿// The Computer Language Benchmarks Game // http://benchmarksgame.alioth.debian.org/ // // contributed by Reed Adams // *reset* open System type Node =
Created Jun 13, 2017
Mandelbrot set in WebGL
View mandelbrot.html

Created Jun 30, 2017
Door Opener
View door_opener.ino
 #include const int BUZZER_INPUT_IO = 5; const int DOOR_OUTPUT_IO = 4; const int LED_IO = 0; enum { STARTING, READY, NOTIFYING, OPENING }; void setup() { Serial.begin(115200);
Last active Jun 30, 2017
Not a good interview problem
View arithmetic
 EVAL=(lambda F,B,V,P,T:lambda e:F(T(e),F,P,B(B,V))[0])( lambda t,f,p,b: [p(p,t,(lambda x:b(('+','-'),b(('*','/'),x))))], lambda b,e: lambda ops,t,i=0: t if i >= len(t) else b(b,e)(ops,(t.__setslice__(i-1,i+2,[e(t[i],t[i-1],t[i+1])]) or t),i) if t[i] in ops else b(b,e)(ops,t,i+1), lambda o,x,y: {'+':lambda a,b:a+b, '-':lambda a,b:a-b, '*':lambda a,b:a*b, '/':lambda a,b:a/b}[o](float(x), float(y)), lambda p, t, f: f((lambda s,e:t.__setslice__(s,e+1,[p(p,t[s+1:e], f)]) or t)(t.index('('),len(t)-1-t[::-1].index(')')) if '(' in t else t)[0], lambda e: [x for x in __import__('re').split('(\\d+|.)', e.replace(' ', '')) if x], ) print EVAL("3 - 5 - 4 - 3"); print EVAL("3 * 5 + 4 / 3"); print EVAL("3 * (5 + 4) / 2");
Created Jan 7, 2015
View OpenTK Texturing example
 #r "System.Drawing" #r "OpenTK" open OpenTK open OpenTK.Graphics open OpenTK.Graphics.OpenGL4 let window = new GameWindow (400,400, GraphicsMode.Default, "", GameWindowFlags.Default, DisplayDevice.Default,
Created Sep 30, 2017
WinGDI Get All supported Monitor Resolutions
View getresolution.fsx
 #nowarn "9" open System open System.Runtime.InteropServices [] type DEVMODEInfo = struct [] [] val mutable dmDeviceName : string [] val mutable dmSpecVersion: int16; [] val mutable dmDriverVersion: int16;
Last active Dec 11, 2017