This file contains hidden or 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
/* | |
title: $:/custom/ui/wikiparser/rules/emoji.js | |
type: application/javascript | |
module-type: wikirule | |
*/ | |
(function() { | |
exports.name = 'emoji'; | |
exports.types = {inline: true}; |
This file contains hidden or 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
def ddb_unpack(item): | |
item | | |
with_entries({ | |
key: .key, | |
value: (.value | to_entries[0] | if .key == "NULL" then | |
null | |
elif .key == "L" then | |
.value | map(ddb_unpack({key:.}).key) # XXX this sucks | |
elif .key == "M" then | |
ddb_unpack(.value) |
This file contains hidden or 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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use feature qw(say); | |
use experimental qw(signatures); | |
use JSON::MaybeXS qw(decode_json); | |
die "SLACK_API_TOKEN must be set\n" unless $ENV{'SLACK_API_TOKEN'}; |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
sliceOne := make([]byte, 10) | |
sliceTwo := sliceOne[0:5] |
This file contains hidden or 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
package main | |
import ( | |
"bytes" | |
"crypto/aes" | |
"fmt" | |
"runtime" | |
"sync" | |
"time" | |
) |
This file contains hidden or 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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use feature qw(say); | |
use experimental qw(signatures); | |
my $THRESHOLD = 8; | |
sub distance($a, $b) { |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <X11/Xlib.h> | |
#include <X11/Xatom.h> | |
#include <X11/Xmu/Atoms.h> | |
#define die(fmt, args...)\ | |
fprintf(stderr, fmt "\n", ##args);\ | |
exit(1) |
This file contains hidden or 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
CFLAGS += -fPIC | |
all: heatmap.so | |
%.so: %.o | |
gcc -shared -o $@ $^ | |
clean: | |
rm -f *.o *.so |
This file contains hidden or 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
--------------------------------------------------------------------------- | |
--- Remote control module allowing usage of awesome-client. | |
-- | |
-- @author Julien Danjou <[email protected]>, with tweaks from Rob Hoelz | |
-- @copyright 2009 Julien Danjou | |
-- @module awful.remote | |
--------------------------------------------------------------------------- | |
-- Grab environment we need | |
require("awful.dbus") |
This file contains hidden or 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 | |
set -e -u | |
EXTERNAL_SCREEN='DP-2-1' | |
INTERNAL_SCREEN='eDP-1' | |
# XXX persist windows & pids to a file in case things go *real* wrong? | |
DRY_RUN=${DRY_RUN:-0} |