SVG sharing sites (there's really only one) strip all script elements including CSS, so open this locally to see the effect.
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
const std = @import("std"); | |
pub fn build(b: *std.Build) void { | |
const target = b.standardTargetOptions(.{}); | |
const optimize = b.standardOptimizeOption(.{}); | |
var prng = std.Random.DefaultPrng.init(blk: { | |
var seed: u64 = undefined; | |
std.posix.getrandom(std.mem.asBytes(&seed)) catch @panic("syscall error"); |
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
/path/to/julia/deps/tools/jldownload /path/to/julia/deps/srccache/JuliaSyntax-4f1731d6ce7c2465fc21ea245110b7a39f34658a.tar.gz https://api.github.com/repos/JuliaLang/JuliaSyntax.jl/tarball/4f1731d6ce7c2465fc21ea245110b7a39f34658a | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 | |
100 477 100 477 0 0 1468 0 --:--:-- --:--:-- --:--:-- 1472 | |
10 158k 10 16688 0 0 33051 0 0:00:04 --:--:-- 0:00:04 33051 | |
100 158k 100 158k 0 0 274k 0 --:--:-- --:--:-- --:--:-- 1953k | |
/path/to/julia/deps/tools/jlchecksum /path/to/julia/deps/srccache/JuliaSyntax-4f1731d6ce7c2465fc21ea245110b7a39f34658a.tar.gz |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#! /bin/bash | |
# Usage: | |
# ./git-move.sh path1/ path2/... path/to/destination/repo | |
args=("$@") | |
# All but last argument: | |
paths=("${args[@]::${#args[@]}-1}") | |
# Last argument: | |
dest="${args[${#args[@]}-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
-- Simple currying module | |
-- | |
-- With a bit of extra complexity, so that | |
-- currying several times gives only one | |
-- level of function indirection for up to | |
-- five parameters. | |
-- weak table to store a reference to the curried | |
-- function, with the parameters and original function | |
local _curried = setmetatable({}, { __mode = 'k' }) |
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
git checkout master | |
git branch -m master trunk | |
git fetch | |
git branch --unset-upstream | |
git branch -u origin/trunk | |
git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/trunk |
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
local Sparse = {} | |
local function new(dimension) | |
local sparse = {} | |
sparse._dimension = dimension | |
return setmetatable(sparse, Sparse) | |
end | |
function Sparse.__index(sparse, key) | |
if sparse._dimension == 1 then |
NewerOlder