This Gist was automatically created by Carbide, a free online programming environment.
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
#000000 | |
#0035A9 | |
#004BFF | |
#00821B | |
#008F72 | |
#00B8E7 | |
#00D769 | |
#023670 | |
#052127 | |
#060634 |
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
// build: | |
// | |
// gcc -O0 -g main.c -I$HOME/.local/include -L$HOME/.local/lib -ljanet | |
// run: | |
// | |
// export LD_LIBRARY_PATH=$HOME/.local/lib | |
// ./a.out | |
#include "janet.h" |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\Wine\X11 Driver] | |
"UseTakeFocus"="N" |
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
pub const EnvMap = struct { | |
arena: std.heap.ArenaAllocator, | |
pairs: std.ArrayList(Pair), | |
pub const Pair = struct { | |
k: []const u8, | |
v: []const u8, | |
}; |
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
// Copyright 2017 Frédéric Guillot. All rights reserved. | |
// Use of this source code is governed by the Apache 2.0 | |
// license that can be found in the LICENSE file. | |
package readability | |
import ( | |
"bytes" | |
"errors" | |
"fmt" |
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
# dinitctl | |
# Autogenerated from man page /usr/share/man/man8/dinitctl.8.gz | |
# Manually edited | |
set commands start stop status restart wake release unpin unload reload list shutdown add-dep rm-dep enable disable setenv | |
complete -f -c dinitctl -n "not __fish_seen_subcommand_from $commands" -l help -d 'Display brief help text and then exit' | |
complete -f -c dinitctl -n "not __fish_seen_subcommand_from $commands" -l version -d 'Display version and then exit' | |
complete -f -c dinitctl -n "not __fish_seen_subcommand_from $commands" -s s -l system -d 'Control the system init process (this is the default when run as root)' | |
complete -f -c dinitctl -n "not __fish_seen_subcommand_from $commands" -s u -l user -d 'Control the user init process (this is the default when not run as root)' |
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
# (c) 04/11/2016, Rolf Rolles, Mobius Strip Reverse Engineering | |
import z3 | |
import struct | |
# XOR key for src.bin | |
KEY_SECTOR = 0x37 | |
# Counter position, as two words | |
CNTLO = 0 | |
CNTHI = 0 |
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 std/[cmdline, base64] | |
proc writePng(f: File; pngdata: string) = | |
let bytes = pngdata.encode | |
const CHUNK_SIZE = 4096 | |
var remaining = bytes.len | |
var i = 0 | |
while remaining > 0: |
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
pub use inner::*; | |
#[rustfmt::skip] | |
mod inner { | |
use femtovg::Color; | |
use lazy_static::lazy_static; | |
lazy_static!{ pub static ref WHITE: Color = Color::rgb(0xff, 0xff, 0xff); } | |
lazy_static!{ pub static ref BLACK: Color = Color::rgb(0x00, 0x00, 0x00); } | |
lazy_static!{ pub static ref GRAY_0: Color = Color::rgb(0xf8, 0xf9, 0xfa); } |
NewerOlder