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
[00:00:00.000,030] <dbg> bt_hci_core: bt_hci_driver_register: Registered Controller | |
[00:00:00.000,183] <dbg> zmk: kscan_matrix_init_input_inst: Configured pin 0 on gpio@50000300 for input | |
[00:00:00.000,244] <dbg> zmk: kscan_matrix_init_input_inst: Configured pin 20 on gpio@50000000 for input | |
[00:00:00.000,274] <dbg> zmk: kscan_matrix_init_input_inst: Configured pin 17 on gpio@50000000 for input | |
[00:00:00.000,335] <dbg> zmk: kscan_matrix_init_input_inst: Configured pin 22 on gpio@50000000 for input | |
[00:00:00.000,366] <dbg> zmk: kscan_matrix_init_output_inst: Configured pin 3 on 74HC595 for output | |
[00:00:00.000,427] <dbg> zmk: kscan_matrix_init_output_inst: Configured pin 4 on 74HC595 for output | |
[00:00:00.000,457] <dbg> zmk: kscan_matrix_init_output_inst: Configured pin 5 on 74HC595 for output | |
[00:00:00.000,488] <dbg> zmk: kscan_matrix_init_output_inst: Configured pin 7 on 74HC595 for output | |
[00:00:00.000,549] <dbg> zmk: kscan_matrix_init_output_inst: Configured pin 15 on 74HC595 for output |
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
[00:00:00.000,000] <dbg> bt_hci_core: bt_hci_driver_register: Registered Controller | |
[00:00:00.000,122] <dbg> zmk: kscan_matrix_init_input_inst: Configured pin 0 on gpio@50000300 for input | |
[00:00:00.000,183] <dbg> zmk: kscan_matrix_init_input_inst: Configured pin 20 on gpio@50000000 for input | |
[00:00:00.000,213] <dbg> zmk: kscan_matrix_init_input_inst: Configured pin 17 on gpio@50000000 for input | |
[00:00:00.000,274] <dbg> zmk: kscan_matrix_init_input_inst: Configured pin 22 on gpio@50000000 for input | |
[00:00:00.000,305] <dbg> zmk: kscan_matrix_init_output_inst: Configured pin 3 on 74HC595 for output | |
[00:00:00.000,457] <dbg> zmk: kscan_matrix_init_output_inst: Configured pin 4 on 74HC595 for output | |
[00:00:00.000,396] <dbg> temp_nrf5: temp_nrf5_sample_fetch: sample: 90 | |
[00:00:00.000,427] <dbg> temp_nrf5: temp_nrf5_channel_get: Temperature:22,500000 | |
[00:00:00.000,488] <dbg> zmk: kscan_matrix_init_output_inst: Configured pin 5 on 74HC595 for output |
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 (c) 2020 The ZMK Contributors | |
* | |
* SPDX-License-Identifier: MIT | |
*/ | |
/dts-v1/; | |
#include <nordic/nrf52840_qiaa.dtsi> | |
#include <dt-bindings/zmk/matrix_transform.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
add_newline = false | |
format = """ | |
$username\ | |
$hostname\ | |
$directory\ | |
$git_branch\ | |
$git_state\ | |
$git_status\ | |
$git_metrics\ |
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
# Aliases | |
alias ls='ls -h' | |
alias ll='ls -l' | |
alias la='ls -a' | |
alias lla='ls -la' | |
alias ls='ls --color' | |
alias less='less --quiet' | |
alias df='df --human-readable' |
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
do ($ = jQuery) -> | |
$.fn.zebraTable = (options) -> | |
defaults = | |
evenColor: '#ccc' | |
oddColor : '#eee' | |
options = $.extend(defaults, options) | |
@each -> | |
$("tr:even", @).css('background-color', options.evenColor) | |
$("tr:odd", @).css('background-color', options.oddColor) |
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/env coffee | |
ticks = ['▁','▂','▃','▄','▅','▆','▇','█'] | |
exports.clark = (data) -> | |
m = Math.min data... | |
n = (Math.max(data...)-m)/(ticks.length - 1) | |
(ticks[(t-m)/n >> 0] for t in data).join('') | |
if require.main == module | |
data = process.argv |
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
haiku = -> | |
adjs = [ | |
"autumn", "hidden", "bitter", "misty", "silent", "empty", "dry", "dark", | |
"summer", "icy", "delicate", "quiet", "white", "cool", "spring", "winter", | |
"patient", "twilight", "dawn", "crimson", "wispy", "weathered", "blue", | |
"billowing", "broken", "cold", "damp", "falling", "frosty", "green", | |
"long", "late", "lingering", "bold", "little", "morning", "muddy", "old", | |
"red", "rough", "still", "small", "sparkling", "throbbing", "shy", | |
"wandering", "withered", "wild", "black", "young", "holy", "solitary", | |
"fragrant", "aged", "snowy", "proud", "floral", "restless", "divine", |
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 fs = require('fs'), | |
http = require('http'); | |
var out = fs.createWriteStream('some-file', {flags:'w',encoding:'utf8'}); | |
http.createServer(function(req, res){ | |
var buffer = []; | |
req.on('data', [].push.bind(buffer)).on('end', function(){ | |
out.write(data); | |
}); |
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
function git_prompt { | |
branch=`git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\1/"` | |
if [ -n "$branch" ]; then | |
case `git status 2> /dev/null | tail -n1` in | |
"nothing to commit (working directory clean)") | |
color="01;33m";; | |
"nothing added to commit but untracked files present (use \"git add\" to track)") | |
color="01;35m";; | |
*) | |
color="01;31m";; |
NewerOlder