Skip to content

Instantly share code, notes, and snippets.

@jellyr
jellyr / CS:GO Sounds.md
Created June 29, 2017 02:30 — forked from itotallyrock/CS:GO Sounds.md
List of all/most CS:GO sound names.
error
ambient\fallscream
ambient\opera
ambient\tankidle2
ambient\waterrun
ambient\water_splash1
ambient\water_splash2
ambient\water_splash3
ambient\animal\bird1
@jellyr
jellyr / TransparentOpenGLComponent.cpp
Created June 6, 2017 08:52 — forked from yairchu/TransparentOpenGLComponent.cpp
Transparent OpenGL Component for JUCE
#include "TransparentOpenGLComponent.h"
using namespace juce;
TransparentOpenGLComponent::TransparentOpenGLComponent()
{
openGLContext.setComponentPaintingEnabled (true);
openGLContext.setRenderer (this);
openGLContext.setContinuousRepainting (true);
openGLContext.attachTo (*this);
@jellyr
jellyr / functional.rkt
Created May 9, 2017 13:17 — forked from mflatt/functional.rkt
Programs by Jay and Matthew at Lambda Lounge Utah, 14 Jan 2014: * "functional.rkt" is from Jay's introduction to functional programming * "web.rkt" and "page.rkt" are from Matthew's explanation of Racket macros & modules
#lang racket
(require rackunit)
;; A singly linked list is either
;; - NULL
;; - pointer to data and a pointer a sll
(struct node (data-ptr next-ptr))
(define n4 (node 4 null))
@jellyr
jellyr / wkhs.cabal
Created January 8, 2017 06:11 — forked from dmgolubovsky/wkhs.cabal
A minimal example of attaching a DOM event handler written in Haskell using Webkit
-- Initial wkhs.cabal generated by cabal init. For further documentation,
-- see http://haskell.org/cabal/users-guide/
name: wkhs
version: 0.1.0.0
-- synopsis:
-- description:
license: PublicDomain
license-file: LICENSE
author: Dmitry Golubovsky
@jellyr
jellyr / WinForm.fsx
Created August 31, 2016 15:43 — forked from adicirstei/WinForm.fsx
Fully reactive UI in F# with observables
open System
open System.Windows.Forms
open System.Drawing
type Action =
| Increment
| Decrement
let form = new Form(Width= 400, Height = 300, Visible = true, Text = "Hello World")
(*
JsonParser.fsx
A JSON parser built from scratch using a combinator library.
Related blog post: http://fsharpforfunandprofit.com/posts/understanding-parser-combinators-4/
*)
#load "ParserLibrary.fsx"
(*
ParserLibrary.fsx
Final version of a parser library.
Related blog post: http://fsharpforfunandprofit.com/posts/understanding-parser-combinators-3/
*)
module TextInput =
open System
(*
ParserLibrary_v2.fsx
Version 2 of the code for a parser library.
Related blog post: http://fsharpforfunandprofit.com/posts/understanding-parser-combinators-2/
*)
open System
@jellyr
jellyr / Fable.Import.ReactNative.fs
Created July 21, 2016 06:48 — forked from scitesy/Fable.Import.ReactNative.fs
Fable React Native Bindings
namespace Fable.Import
open System
open System.Text.RegularExpressions
open Fable.Core
open Fable.Import.JS
type Globals =
[<Global>] static member ``global`` with get(): ___React.GlobalStatic = failwith "JS only" and set(v: ___React.GlobalStatic): unit = failwith "JS only"
module ___React =
@jellyr
jellyr / Counter.fs
Created July 18, 2016 12:58 — forked from Tarmil/Counter.fs
Port of the first example from https://github.com/evancz/elm-architecture-tutorial to WebSharper
namespace Example1
open WebSharper
open WebSharper.UI.Next
open WebSharper.UI.Next.Html
open WebSharper.UI.Next.Client
[<JavaScript>]
module Counter =