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 config for sway | |
# | |
# Copy this to ~/.config/sway/config and edit it to your liking. | |
# | |
# Read `man 5 sway` for a complete reference. | |
### Variables | |
# | |
# Logo key. Use Mod1 for Alt. | |
set $mod Mod4 |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<title>Wact B. Prot</title> | |
<meta name="description" content="Wact B. Prot"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body { | |
font-family:verdana; |
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
;;------------------------------ | |
;; p-ubsub events | |
;;------------------------------ | |
(def p-table (atom []) ) | |
(defn p-start-table | |
"Registers a listener. Pretty prints a p-table on events. | |
Example: | |
```clojure |
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
#! /usr/bin/python3 | |
import os | |
import json | |
import requests | |
import argparse | |
from requests.auth import HTTPBasicAuth | |
parser = argparse.ArgumentParser() | |
parser.add_argument("--srv", type=str, nargs=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
(ns cmp.system | |
^{:author "wactbprot" | |
:doc "study."} | |
(:require [taoensso.timbre :as timbre] | |
[clojure.core.async :as a])) | |
;;------------------------------ | |
;; kill channel | |
;;------------------------------ | |
(def kill> (a/chan)) |
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
(setq make-backup-files nil) | |
(global-set-key [S-dead-grave] "`") | |
(setq ring-bell-function 'ignore) | |
(setq visible-bell nil) | |
(setq ispell-dictionary "british") | |
(set-language-environment "UTF-8") | |
(require 'package) | |
(add-to-list 'package-archives | |
;'("melpa-stable" . "http://stable.melpa.org/packages/") |
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
#include <Ethernet.h> | |
#define PORT 9009 | |
#define MAXTCPLENGTH 30 | |
#define MAXDRY 850 | |
#define MINDRY 450 | |
byte mac[] = {0x00, 0x50, 0x56, 0x1E, 0x38, 0x36}; | |
IPAddress ip(192, 168, 98, 135); | |
EthernetServer server(PORT); | |
String cmd, param; |
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
// ... | |
type Config struct { | |
Db Conf `json:"db"` | |
Relay Conf `json:"relay"` | |
Redis Conf `json:"redis"` | |
} | |
type Conf struct { | |
Path string `json:"path"` | |
Port string `json:"port"` | |
Server string `json:"server"` |
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
l <- readLines("svg.html") | |
l <- unlist( regmatches(l, gregexpr("d=\"M([0-9,]*)A", l))) | |
l <- gsub("[d=\\\"AM]", "", l) | |
l <- strsplit(l,",") | |
m <- lapply(l, function(e){ | |
c(as.numeric(e[1]), as.numeric(e[2])) | |
}) | |
M <- t(matrix(unlist(m), nrow = 2, ncol=length(l))) |
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
var _ = require("underscore") | |
, ndata = require('../index') | |
, assert = require('assert') | |
, conf = {port: 9003} | |
, server | |
, client; | |
describe('ndata#known to fail', function () { |
NewerOlder