,+, ,+,
+' 5₈ '+' 1₈ '+
| 101₂ | 001₂ |
,+, ,+, ,+,
+' 4₈ '+' 0₈ '+' 3₈ '+
| 100₂ | 000₂ | 011₂ |
+, ,+, ,+, ,+
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
digraph widening { | |
node [style=filled, colorscheme=pastel13, color=2] "i8"; "i16"; "i32"; "i64"; | |
node [style=filled, colorscheme=pastel13, color=3] "u8"; "u16"; "u32"; "u64"; | |
"i8" -> "i16" | |
"i8" -> "i32" | |
"i8" -> "i64" | |
"i16" -> "i32" | |
"i16" -> "i64" | |
"i32" -> "i64" |
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
#![feature(slice_patterns)] | |
use std::fmt; | |
use std::ops; | |
#[derive(Clone, Debug)] | |
pub enum Doc<'a> { | |
Text(&'a str, Vec<Doc<'a>>), | |
Line(usize, Vec<Doc<'a>>), | |
} |
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 History | |
import Graphics.Element exposing (Element, show) | |
import Mouse | |
import Signal exposing ((<~)) | |
type alias Model = Int | |
init : Model | |
init = 0 |
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 History | |
import Graphics.Element exposing (Element, show) | |
import Mouse | |
import Signal exposing ((<~)) | |
import Task exposing (Task) | |
makeTitle : Int -> String | |
makeTitle n = "n = " ++ toString n | |
port title : Signal String |
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 Graphics.Element exposing (Element, show) | |
import Mouse | |
type alias Model = | |
{ n : Int | |
} | |
init : Model |
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
fn main() { | |
swizzle_gen(); | |
} | |
fn swizzle_gen() { | |
swizzle_gen0("x"); | |
swizzle_gen0("y"); | |
swizzle_gen0("z"); | |
swizzle_gen0("w"); | |
} |
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <GL/glfw3.h> | |
int main() | |
{ | |
GLFWwindow window; | |
if( !glfwInit() ) | |
{ |
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 glfw3::*; | |
fn run(init_fn: &fn(), update_fn: &fn(tpf: f64), render_fn: &fn(), cleanup_fn: &fn()) { | |
init(init_fn, cleanup_fn); | |
mainloop(update_fn, render_fn, cleanup_fn); | |
cleanup(cleanup_fn); | |
} | |
fn init(init_fn: &fn(), cleanup_fn: &fn()) { | |
init_fn(); |
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
// #ifndef __glcorearb_h_ | |
// #define __glcorearb_h_ | |
// #ifdef __cplusplus | |
// extern "C" { | |
// #endif | |
/* | |
** Copyright (c) 2007-2012 The Khronos Group Inc. | |
** |