Skip to content

Instantly share code, notes, and snippets.

View scitesy's full-sized avatar

Scott Scites scitesy

View GitHub Profile
(test_pypy_peewee) username@machinename:~/venvdirectory$ pip install peewee
Collecting peewee
Using cached peewee-2.8.2.tar.gz
Building wheels for collected packages: peewee
Running setup.py bdist_wheel for peewee ... error
Complete output from command /home/username/venvdirectory/test_pypy_peewee/bin/pypy -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-Pmwto8/peewee/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpi0nO3Mpip-wheel- --python-tag pp253:
running bdist_wheel
running build
running build_py
creating build
@scitesy
scitesy / Fable.Import.ReactNative.fs
Created July 4, 2016 19:29
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 =
namespace WebSocket
// Appache 2.0 license
// References:
// [1] Proposed WebSockets Spec December 2011 http://tools.ietf.org/html/rfc6455
// [2] John McCutchan (Google Dart Team Member) http://www.altdevblogaday.com/2012/01/23/writing-your-own-websocket-server/
// [3] A pretty good Python implemenation by mrrrgn https://github.com/mrrrgn/websocket-data-frame-encoder-decoder/blob/master/frame.py
// [4] WebSockets Organising body http://www.websocket.org/echo.html
// [5] AndrewNewcomb's Gist (starting point) https://gist.github.com/AndrewNewcomb/711664
@scitesy
scitesy / fsautocomplete.exe.config
Created July 30, 2014 15:27
fsautocomplete configuration file to add system.diagnostics
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="system.diagnostics" type="System.Diagnostics.DiagnosticsConfigurationHandler, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
<system.diagnostics>
<trace autoflush="true" />
</system.diagnostics>
</configuration>
<!--http://answers.unity3d.com/questions/54276/exception-internal-configuration-error-failed-to-go.html-->
//Here's the view of an f# interactive session.
> open System.IO;;
> let foo = new MemoryStream();;
val foo : MemoryStream
> let bar = foo;;
val bar : MemoryStream
> let fooy() = MemoryStream();;
let fooy() = MemoryStream();;
-------------^^^^^^^^^^^^^^