I hereby claim:
- I am straight-shoota on github.
- I am straightshoota (https://keybase.io/straightshoota) on keybase.
- I have a public key ASAGiaf3Yvn1msqOmBzwkgy5gS0QDS3qsi_tIeZjYmpc6Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #! /usr/bin/env bash | |
| # | |
| # This script looks up the latest successfull nightly build of crystal on | |
| # Circle CI, extracts the build number of `dist_artifacts` job and retrieves | |
| # it's artifacts list. | |
| # | |
| # From this artifacts list, the specified tar package is downloaded and | |
| # extracted in $INSTALL_DIR. | |
| # The binaries `bin/crystal` and `bin/shards` are linked as `crystal-nightly` | |
| # and `shards-nightly` in `/usr/local/bin`. |
| ; ModuleID = 'main_module' | |
| target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" | |
| target triple = "x86_64-pc-linux-gnu" | |
| %String = type { i32, i32, i32, i8 } | |
| %"Slice(UInt8)" = type { i32, i1, i8* } | |
| %"Array(String)" = type { i32, i32, i32, %String** } | |
| %"->" = type { i8*, i8* } | |
| %"Array(Pointer(Void))" = type { i32, i32, i32, i8** } | |
| %Fiber = type { i32, i8*, %"(Event::Event | Nil)", i8*, i8*, %Fiber*, %Fiber*, %String*, %"(Proc(Nil) | Proc(Void))" } |
| def bob | |
| 10.times do | |
| puts "B" | |
| sleep 0.006 | |
| end | |
| end | |
| def alice | |
| 3.times do | |
| puts "A" |
| // Simple program to test support of SO_REUSEPORT | |
| // Adapted from https://blog.dubbelboer.com/2016/04/23/so-reuseport.html | |
| #include <stdio.h> | |
| #include <errno.h> | |
| #include <sys/socket.h> | |
| #include <unistd.h> | |
| int main() { | |
| #ifdef SO_REUSEPORT |
| require "json" | |
| module Crystal::Docs | |
| record Program, | |
| project_info : ProjectInfo, | |
| constants : Array(Constant), | |
| types : Array(Type), | |
| methods : Array(Method), | |
| macros : Array(Macro) |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| clone_crystal_from_vagrant = lambda do |config| | |
| config.vm.provision :shell, privileged: false, inline: %( | |
| # Checkout crystal repository | |
| git clone /vagrant crystal | |
| ) | |
| end |
| #!/bin/sh | |
| # | |
| # This script ensures Crystal code is correctly formatted before committing it. | |
| # It won't apply any format changes automatically. | |
| # | |
| # Only staged files (the ones to be committed) are being processed, but each file is checked | |
| # entirely as it is stored on disc, even parts that are not staged. | |
| # | |
| # To use this script, it needs to be installed in the local git repository. For example by running | |
| # curl https://gist.githubusercontent.com/straight-shoota/fdaf4cf1954e084cd5abccf8f77975f6/raw/pre-commit > .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit |
| # The `SoftwareVersion` type represents a version number. | |
| # | |
| # An instance can be created from a version string which consists of a series of | |
| # segments separated by periods. Each segment contains one ore more alpanumerical | |
| # ASCII characters. The first segment is expected to contain only digits. | |
| # | |
| # There may be one instance of a dash (`-`) which denotes the version as a | |
| # pre-release. It is otherwise equivalent to a period. | |
| # | |
| # Optional version metadata may be attached and is separated by a plus character (`+`). |
| .POSIX: | |
| all: | |
| # Recipes | |
| ## Build application | |
| ## $ make | |
| ## Run tests | |
| ## $ make test | |
| ## Install application |