Skip to content

Instantly share code, notes, and snippets.

View drager's full-sized avatar
🦀
🦀 🕸️

Jesper Håkansson drager

🦀
🦀 🕸️
View GitHub Profile
import (builtins.fetchGit {
# Descriptive name to make the store path easier to identify
name = "vscode-1.32.3";
url = https://github.com/nixos/nixpkgs/;
# Commit hash for vscode-1.32.3
rev = "2c6876d81bee4e0dcfc4bdcf29f391f6f5152c78";
}) {}
Moving from top to bottom:
Left side:
Top box (left side):
Normal: Unit { value: Matrix { data: [0.8320503, 0.5547002] } }
Depth: -3.6055512
Bottom box (left side):
Normal: Unit { value: Matrix { data: [0.5547002, 0.8320503] } }
Depth: -3.6055512
Right side:
7:11.54 /home/drager/src/gecko-dev/media/libjpeg/jmemnobs.c: In function ‘jpeg_mem_available’:
7:11.54 /home/drager/src/gecko-dev/media/libjpeg/jmemnobs.c:75:39: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
7:11.54 if (cinfo->mem->max_memory_to_use > already_allocated)
7:11.54 ^
7:16.87 modules/brotli
7:19.28 during GIMPLE pass: lower
7:19.28 In file included from /home/drager/src/gecko-dev/obj-x86_64-pc-linux-gnu/dist/include/js/TracingAPI.h:11,
7:19.28 from /home/drager/src/gecko-dev/obj-x86_64-pc-linux-gnu/dist/include/js/GCPolicyAPI.h:44,
7:19.28 from /home/drager/src/gecko-dev/obj-x86_64-pc-linux-gnu/dist/include/js/RootingAPI.h:22,
7:19.28 from /home/drager/src/gecko-dev/obj-x86_64-pc-linux-gnu/dist/include/js/CallArgs.h:73,
let test =
<View>
<ReactNativeMaterialUi.ListItem
centerElement={
primaryText: "Primary",
secondaryText: None,
tertiaryText: None
}
rightElement=(<Text value="Right" />)
leftElement=(<Text value="Left" />)
// Generated by BUCKLESCRIPT VERSION 2.1.0, PLEASE EDIT WITH CARE
'use strict';
var ReasonReact = require("reason-react/lib/js/src/ReasonReact.js");
var MaterialIcons = require("react-native-vector-icons/MaterialIcons");
console.log(MaterialIcons.Icon);
function make(name, color, size, children) {
return ReasonReact.wrapJsForReason(MaterialIcons.Icon, {
type alias Sessions =
Dict SessionId Connection
type alias Connection =
{ host : String
, portNumber : Int
, username : String
, connected : Bool
}
@drager
drager / Records.elm
Last active September 24, 2017 17:29
import Form exposing (Form)
import Form.Validate as Validate exposing (field, map3, Validation)
import Form.Field
import Http
import Dict exposing (Dict)
import Json.Decode as Decode
import Json.Encode as Encode
type alias Connection a =
{ a
@drager
drager / Ports.elm
Last active September 24, 2017 13:00
port module Ports exposing (..)
import Json.Encode
type alias Key =
String
type alias Value =
view : Model -> Html Msg
view model =
div []
[ (case model.weather of
Just value ->
case List.head value.value of
Just first ->
(case Date.fromString (toString (first.date)) of
Result.Ok date ->
formatDate date
#[derive(Debug, Clone, Deserialize)]
pub struct Location {
#[serde(rename="LocationName")]
pub name: String,
pub fullName: String,
#[serde(rename="Priority")]
pub priority: u32,
#[serde(rename="Order")]
pub order: u32,
}