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
components: | |
requestBodies: | |
Shape: | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/Shape' | |
schemas: | |
Circle: | |
properties: |
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
openapi: 3.0.0 | |
info: | |
title: "foo" | |
version: "0.0.1" | |
license: | |
url: "https://www.example.com" | |
name: "MIT" | |
servers: | |
- url: "http://localhost:8080" | |
paths: |
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
@nix { "action": "setPhase", "phase": "unpackPhase" } | |
unpacking sources | |
unpacking source archive /nix/store/wbg1gz92d9vvp9kfv0j7jwnydqbz8sl7-bazel-3.7.2-dist.zip | |
source root is . | |
@nix { "action": "setPhase", "phase": "patchPhase" } | |
patching sources | |
applying patch /nix/store/xms1dccbdpg8baylzl71ddm9zn36baqa-trim-last-argument-to-gcc-if-empty.patch | |
patching file tools/cpp/osx_cc_wrapper.sh.tpl | |
applying patch /nix/store/jwzbqr298z1d1n95pj14y6anrhr2lsaq-no-arc.patch | |
patching file tools/osx/xcode_locator.m |
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
package main | |
import ( | |
"bufio" | |
_ "embed" | |
"encoding/json" | |
"io/ioutil" | |
"log" | |
"os" | |
"strings" |
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
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE PolyKinds #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE TypeOperators #-} | |
import Data.Functor.Identity | |
import Data.Kind | |
import GHC.TypeLits | |
import Numeric.Fin -- from https://github.com/ekmett/numeric-fin/ |
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
424 free | |
324 strlen | |
323 fprintf | |
319 strcmp | |
265 exit | |
229 snprintf | |
228 printf | |
211 err | |
203 memset | |
189 malloc |
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 Control.Arrow | |
import Control.Arrow.Operations | |
import Control.Arrow.Transformer.All | |
import Data.Stream | |
frequency :: Int | |
frequency = 1024 | |
exp :: StreamArrow (->) () Double | |
exp = fixA (integral >>> arr (+1)) |
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
grammar GoParser; | |
sourceFile | |
: packageClause eos (importDecl eos)* ((functionDecl | methodDecl | declaration) eos)* | |
; | |
packageClause | |
: 'package' IDENTIFIER | |
; |
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
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="text"/> | |
<xsl:template name="sort"> | |
<xsl:param name="w"/> | |
<!-- position in word --> | |
<xsl:param name="i" select="1"/> | |
<!-- position in output --> | |
<xsl:param name="j" select="1"/> | |
<xsl:param name="out"/> | |
<xsl:variable name="alpha" select="'01a02b03c04d05e06f07g08h09i10j11k12l13m14n15o16p17q18r19s20t21u22v23w24x25y26z'"/> |
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
my $last_cmd = ''; | |
my $up_cnt; | |
sub up { | |
if ($last_cmd ne 'up') { | |
$up_cnt = 0; | |
} | |
`sleep 0.2s;xte 'key Up'`; | |
$last_cmd = 'up'; | |
$up_cnt++; |
NewerOlder