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 fn FromJson(mem: *std.mem.Allocator, src: []u8) !atem.Prog { | |
var jsonparser = std.json.Parser.init(mem, true); | |
defer jsonparser.deinit(); | |
var jsontree = try jsonparser.parse(src); | |
defer jsontree.deinit(); | |
const rootarr = try as(std.json.Value.Array, std.json.Array, jsontree.root); | |
// defer rootarr.deinit(); | |
return fromJson(mem, rootarr.toSlice()); | |
} |
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
# Configuration for resolvconf(8) | |
# See resolvconf.conf(5) for details | |
resolv_conf=/etc/resolv.conf | |
interface_order="lo wlp2s0" | |
# If you run a local name server, you should uncomment the below line and | |
# configure your subscribers configuration files below. | |
name_servers="149.112.112.112 9.9.9.9 2620:fe::9 2620:fe::fe 2a02:2970:1002::18 46.182.19.48" |
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
# Default configuration file for wpa_supplicant.conf(5). | |
ctrl_interface=/run/wpa_supplicant | |
ctrl_interface_group=wheel | |
eapol_version=1 | |
ap_scan=1 | |
fast_reauth=1 | |
update_config=1 | |
# Add here your networks. |
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/sh | |
# Default acpi script that takes an entry for all actions | |
# NOTE: This is a 2.6-centric script. If you use 2.4.x, you'll have to | |
# modify it to not use /sys | |
minspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq` | |
maxspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq` | |
setspeed="/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed" |
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
# Pass all events to our one handler script | |
event=.* | |
action=/etc/acpi/handler.sh %e |
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
export LANG=en_US.UTF-8 | |
export LC_CTYPE=en_US.UTF-8 | |
export GIT_TERMINAL_PROMPT=1 | |
export NO_AT_BRIDGE=1 | |
export PATH=$PATH:/home/_/b:/usr/local/go/bin:/home/_/c/go/bin:/home/_/.npm-pkgs/bin:/home/_/.local/bin | |
export GOPATH=/home/_/c/go | |
export PS1="\[\e[30;43m\]\w\[\e[00m\e[33m\]» \[\e[00m\]" | |
setfont /usr/share/kbd/consolefonts/ter-v32b.psf.gz |
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 2007-2018 Mitchell mitchell.att.foicica.com. See LICENSE. | |
local M = {} | |
--[[ This comment is for LuaDoc. | |
--- | |
-- Editing features for Textadept. | |
-- @field auto_indent (bool) | |
-- Match the previous line's indentation level after inserting a new line. | |
-- The default value is `true`. |
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 2007-2018 Mitchell mitchell.att.foicica.com. See LICENSE. | |
local M = {} | |
--[[ This comment is for LuaDoc. | |
--- | |
-- Editing features for Textadept. | |
-- @field auto_indent (bool) | |
-- Match the previous line's indentation level after inserting a new line. | |
-- The default value is `true`. |
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
-- the suggested patch to textadept/modules/textadept/editing.lua | |
-- Copyright 2007-2018 Mitchell mitchell.att.foicica.com. See LICENSE. | |
local M = {} | |
--[[ This comment is for LuaDoc. | |
--- | |
-- Editing features for Textadept. | |
-- @field auto_indent (bool) |
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
module Mini.TCls3 (class Two, dos, class Tri, tres, class Quad, quattro) where | |
class Zero where | |
zilch :: Boolean | |
class One where | |
uno :: Int -> Number | |
ein :: Number -> Boolean -> Int | |
class One <= Two a where |