This file contains hidden or 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 os | |
os.system('pip3 install --user dish') | |
from dish import Dish | |
dish = Dish() | |
dish.run() |
This file contains hidden or 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
def girl_likes_me(): | |
return False |
This file contains hidden or 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 <iostream> | |
using namespace std | |
; int main ( ) | |
{ cout << "Hello worl" | |
; return 0 | |
; | |
} |
This file contains hidden or 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
meta: | |
id: chunks32h | |
endian: le | |
seq: | |
- id: directory_entries | |
type: directory_entry | |
repeat: expr | |
repeat-expr: 65536 | |
- id: guard_entry | |
type: directory_entry |
This file contains hidden or 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
-- Normal ports | |
port outgoingString : String -> Cmd msg | |
port incomingString : (String -> msg) -> Sub msg | |
-- Ports with type aliases | |
type alias OutgoingPort a = | |
a -> Cmd msg |
This file contains hidden or 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
module NeverGonna exposing (main) | |
import Html exposing (..) | |
main : Html Never -- gonna give you up | |
main = | |
let | |
neverGonna : List String | |
neverGonna = |
This file contains hidden or 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
module Fraction exposing (Fraction, create, toFloat_) | |
-- See https://discourse.elm-lang.org/t/proposal-extending-built-in-typeclasses/5510/2 | |
type Fraction [ number, comparable ] | |
= Fraction Int Int | |
This file contains hidden or 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
-- if elm was imperative | |
import Console | |
import Proc | |
type alias Model = | |
{ prompt : String | |
} |
This file contains hidden or 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
module Thing exposing ( add4 ) | |
add4 : Int -> Int | |
add4 = | |
(+) 4 |
This file contains hidden or 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
type Decoder a | |
= Decoder ( String -> Maybe a ) | |
type Error | |
= InvalidHeaders | |
| NoRows | |
int : Decoder Int |
OlderNewer