This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Generated by Nim Compiler v1.7.3 */ | |
#define NIM_INTBITS 64 | |
#define NIM_EmulateOverflowChecks | |
#include "nimbase.h" | |
#include <stdio.h> | |
#undef LANGUAGE_C | |
#undef MIPSEB | |
#undef MIPSEL | |
#undef PPC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let color = uint8((x / uiState.windowWidth) * 256) | |
let screen = newImage(512, 512) | |
let screenCtx = newContext(screen) | |
screenCtx.font = uiCtx.consoleFont | |
screen.fill(rgba(255, 255, 255, 255)) | |
screen.fillText( | |
uiCtx.consoleFont.style(36, rgba(color, color, color, 255)), | |
$frameRate | |
) | |
var surface = createRGBSurface(0, cint 512, cint 512, 32, rmask, gmask, bmask, amask) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use "files" | |
use "collections" | |
class RecordType1 | |
let spec_record_type: (U32, U32) = (0, 1) | |
var record_type: U8 = 0 | |
new create(line: String val) => | |
try |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use "time" | |
use "files" | |
use "glob" | |
actor Main | |
new create(env: Env) => | |
let caps = recover val FileCaps.>set(FileRead).>set(FileStat).>set(FileLookup) end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Svg exposing (Svg, linearGradient, stop) | |
import Svg.Attributes exposing (id, stroke, offset, stopColor, stopOpacity) | |
import Plot exposing (..) | |
type alias MyData = | |
{ areaData : List ( Float, Float ) | |
, lineData : List ( Float, Float ) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime, date | |
from dateutil.parser import parse | |
class ExcelDateException(Exception): | |
pass | |
def to_excel_date(iso_date): | |
"""Convert a date to the Excel representation of a date |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
LICENSE | |
This Source Code Form is subject to the terms of the Mozilla Public | |
License, v. 2.0. If a copy of the MPL was not distributed with this | |
file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
DESCRIPTION | |
This is a prototype, parsley implementation of a subset of a MySQL-like SQL syntax. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Threaded Load-balancing Broker | |
""" | |
from __future__ import print_function | |
from threading import Thread | |
import zmq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
LICENSE: MIT | |
This is an experiment. Use at your own risk. | |
""" | |
import sys | |
import time | |
import zlib | |
import pickle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-| This code will reproduce issue https://github.com/elm-lang/core/issues/749 | |
when the text from either div is cleared. | |
-} | |
import Html exposing (text) | |
import Html.App as App | |
import Html.Attributes exposing (contenteditable) | |
import Html.Events exposing (on) | |
import Json.Decode as Json |
NewerOlder