😶🌫️
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
Mix.install([ | |
{:dagger, "~> 0.9.4"} | |
]) | |
defmodule Ci do | |
alias Dagger.{Client, Container, Directory, Host} | |
@workdir "/app" | |
# TODO: change to your release name. | |
@release "hello_world_dagger" |
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
# headver.exs - a headver implementation in Elixir. See https://github.com/line/headver. | |
# | |
# Run | |
# $ elixir headver.exs --head=5 --build=23 --suffix=qa | |
# 5.2142.23+qa | |
Mix.install([ | |
{:timex, "~> 3.7"} | |
]) |
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
// Learn more about F# at http://fsharp.org | |
open BenchmarkDotNet.Attributes | |
open BenchmarkDotNet.Running | |
let rec fibonacci n = | |
match n with | |
| 1 -> 1 | |
| 2 -> 2 | |
| n -> fibonacci (n - 1) + fibonacci (n - 2) |
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
[None, Some(1), Some(2), None, Some(10)] | |
->Js.Array2.filter(a => Belt.Option.isSome(a)) | |
->Js.Array2.map(n => Belt.Option.getExn(n)) | |
->Js.log |
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
Tue Aug 18 13:38:54 2020:["lsp#register_server", "server registered", "typescript support using typescript-language-server"] | |
Tue Aug 18 13:38:54 2020:["lsp#register_server", "server registered", "elixir-ls"] | |
Tue Aug 18 13:38:54 2020:["lsp#register_server", "server already registered", "typescript support using typescript-language-server"] | |
Tue Aug 18 13:38:54 2020:["lsp#register_server", "server registered", "typescript support using typescript-language-server"] | |
Tue Aug 18 13:38:54 2020:["lsp#register_server", "server already registered", "elixir-ls"] | |
Tue Aug 18 13:38:54 2020:["lsp#register_server", "server registered", "elixir-ls"] | |
Tue Aug 18 13:38:54 2020:["vim-lsp signs enabled"] | |
Tue Aug 18 13:38:54 2020:["vim-lsp virtual text enabled"] | |
Tue Aug 18 13:38:54 2020:["vim-lsp highlighting enabled"] |
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
using System; | |
using NUnit.Framework; | |
namespace Syntax.Tests | |
{ | |
public struct Vector2 : IFormattable | |
{ | |
public float x, y; | |
public static Vector2 operator -(Vector2 a, Vector2 b) |
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
call plug#begin() | |
" | |
""" LSP | |
Plug 'prabirshrestha/async.vim' | |
Plug 'prabirshrestha/vim-lsp' | |
Plug 'mattn/vim-lsp-settings' | |
Plug 'prabirshrestha/asyncomplete.vim' | |
Plug 'prabirshrestha/asyncomplete-lsp.vim' | |
" | |
""" Language tools |
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
/* eslint-disable no-undef */ | |
// replaced liff when running in cypress sandbox | |
if (window.cy) { | |
console.log('liff: running in cypress sandbox') | |
window.liff = window.cy.liff | |
} | |
export default { | |
init() { | |
return new Promise((resolve, reject) => |
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
defmodule FileServer do | |
@doc """ | |
starting FileServer process. | |
""" | |
def start(dir \\ ".") do | |
spawn(FileServer, :loop, [dir]) | |
end | |
def loop(dir) do | |
receive do |
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
$ ./configure --enable-rust-debug | |
checking for xcrun... xcrun | |
checking for make... yes | |
checking for GNU Make... make | |
checking build system type... x86_64-apple-darwin19.2.0 | |
checking host system type... x86_64-apple-darwin19.2.0 | |
checking for gcc... gcc | |
checking whether the C compiler works... yes | |
checking for C compiler default output file name... a.out | |
checking for suffix of executables... |
NewerOlder