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(fizzbuzz). | |
-export([main/0]). | |
main() -> | |
Types = [ | |
{3, "Fizz"}, | |
{5, "Buzz"} | |
], | |
io:put_chars(run(100, Types)). |
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
func! s:populate(file, cmd) abort | |
unlet! t:job | |
try | |
exe 'cgetfile '.a:file | |
finally | |
call setqflist([], 'a', {'title': a:cmd}) | |
endtry | |
endfunc | |
func! AsyncDo(...) abort |
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
{ | |
"nodes": { | |
"devenv": { | |
"inputs": { | |
"flake-compat": "flake-compat", | |
"nix": "nix", | |
"nixpkgs": [ | |
"nixpkgs" | |
], | |
"poetry2nix": "poetry2nix", |
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 | |
psql -qX "$@" <<EOF | |
\t on | |
\timing off | |
\echo 'Digraph F{' | |
\echo 'ranksep=1.0; size="18.5, 15.5"; rankdir=LR;' | |
SELECT |
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
defmodule Langusta.Site.CleanURL do | |
defmodule Entry do | |
defstruct [ | |
:url_pattern, | |
rules: [], | |
raw_rules: [], | |
exceptions: [], | |
redirections: [] | |
] |
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
{config, pkgs, ...}: let | |
domain = "hauleth.dev"; | |
mail-domain = "mail.${domain}"; | |
sieve-data = let | |
stalwart-mail = config.services.stalwart-mail.package; | |
in pkgs.stdenvNoCC.mkDerivation { | |
pname = "stalwart-mail-sieve-data"; | |
inherit (stalwart-mail) version src; | |
dontBuild = 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
{ | |
"nodes": { | |
"flake-utils": { | |
"inputs": { | |
"systems": "systems" | |
}, | |
"locked": { | |
"lastModified": 1694529238, | |
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", | |
"owner": "numtide", |
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"); | |
const Type = std.builtin.Type; | |
pub fn Templates(comptime entries: anytype) type { | |
const type_info = @typeInfo(@TypeOf(entries)).Struct; | |
var enum_fields: [type_info.fields.len]Type.EnumField = undefined; | |
for (type_info.fields, 0..) |field, idx| { |
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
defmodule Mix.Tasks.Man do | |
@moduledoc """ | |
Print documentation for given Elixir term. | |
""" | |
@shortdoc "Show manual for term" | |
use Mix.Task | |
require IEx.Helpers |
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
# INSTALL INSTRUCTIONS: save as ~/.gdbinit | |
# | |
# DESCRIPTION: A user-friendly gdb configuration file, for x86/x86_64 and ARM platforms. | |
# | |
# REVISION : 8.0.5 (18/08/2013) | |
# | |
# CONTRIBUTORS: mammon_, elaine, pusillus, mong, zhang le, l0kit, | |
# truthix the cyberpunk, fG!, gln | |
# | |
# FEEDBACK: http://reverse.put.as - reverser@put.as |
NewerOlder