Tagging @ericnormand and @pez
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 <pebble.h> | |
static Window *window; | |
static Layer *poly_layer; | |
const int NUM_POINTS = 100; | |
// Draws a simple triangle, just using many points | |
static GPath *create_poly_path(int num_points) { | |
APP_LOG(APP_LOG_LEVEL_DEBUG, "Creating poly path with %d points.", num_points); |
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
// Available variables which can be used inside of strings. | |
// ${workspaceRoot}: the root folder of the team | |
// ${file}: the current opened file | |
// ${fileBasename}: the current opened file's basename | |
// ${fileDirname}: the current opened file's dirname | |
// ${fileExtname}: the current opened file's extension | |
// ${cwd}: the current working directory of the spawned process | |
// A task runner that calls a custom npm script that compiles the extension. | |
{ |
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
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Launch Extension", | |
"type": "extensionHost", | |
"request": "launch", |
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 window=global;var $CLJS=require("./cljs_env");require("./goog.math.long.js");require("./goog.math.integer.js");require("./goog.string.string.js");require("./goog.object.object.js");require("./goog.array.array.js");require("./goog.uri.uri.js");require("./goog.string.stringbuffer.js"); | |
var cljs$cst$keyword$ns,cljs$cst$symbol$root,cljs$cst$symbol$default_DASH_dispatch_DASH_val,cljs$cst$symbol$mseq,cljs$cst$symbol$defrecord_STAR_,cljs$cst$keyword$val,cljs$cst$symbol$_meta,cljs$cst$symbol$js_STAR_,cljs$cst$symbol$__hash,cljs$cst$symbol$ns_STAR_,cljs$cst$symbol$ascending_QMARK_,cljs$cst$symbol$fqn,cljs$cst$symbol$update_DASH_count,cljs$cst$symbol$off,cljs$cst$symbol$cnt,cljs$cst$keyword$status,cljs$cst$keyword$descendants,cljs$cst$symbol$nil_DASH_val,cljs$cst$symbol$dispatch_DASH_fn, | |
cljs$cst$symbol$start,cljs$cst$symbol$new,cljs$cst$symbol$all,cljs$cst$symbol$prev_DASH_seed,cljs$cst$symbol$first,cljs$cst$symbol$tail,cljs$cst$symbol$method_DASH_cache,cljs$cst$symbol$ci,cljs$cst$keyword$alt_DASH_impl,cljs$cst$sy |
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 tween | |
"Simple tweening of values inside a map atom.") | |
(defn easeOutQuad | |
[elapsed-t duration] | |
(let [dt (/ elapsed-t duration)] | |
(* dt (- 2 dt)))) | |
(defn easeLinear | |
[elapsed-t duration] |
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
// Alternative Calva keybindings, for keyboard layouts where `ctrl+alt` is `altgr` | |
// * Using `ctrl+shift` instead of `ctrl+alt` | |
// Calva: https://github.com/BetterThanTomorrow/calva | |
// Paste the contents of the top level array into the correspning array in your `keybindings.json` file. | |
// (You can open that file easily using the *Preferences: Open Keyboard Shortuts (JSON)* command in vscode.) | |
[ | |
{ | |
"command": "calva.tellAboutNewChordingKey", | |
"key": "ctrl+shift+v", | |
"when": "editorLangId == 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
import Foundation | |
import UIKit | |
extension UIControl { | |
func listen(_ action: @escaping () -> (), for controlEvents: UIControlEvents) -> AnyObject { | |
let sleeve = ClosureSleeve(attachTo: self, closure: action, controlEvents: controlEvents) | |
addTarget(sleeve, action: #selector(ClosureSleeve.invoke), for: controlEvents) | |
return sleeve | |
} | |
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 pez.aoc2020.day-4 | |
(:require [clojure.string] | |
[clojure.spec.alpha :as s] | |
[pez.aoc2020.util :as util])) | |
(defn parse [card] | |
(->> (clojure.string/replace card #"\s" " ") | |
(re-seq #"(\S+):(\S+)") | |
(map rest) | |
(reduce |
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
error 09:59:45.583077+0100 tccd identifier=com.obsproject.obs-studio, pid=4507, auid=501, euid=501, binary_path=/Applications/OBS.app/Contents/MacOS/obs attempted to call TCCAccessRequest for kTCCServiceAccessibility without the recommended com.apple.private.tcc.manager.check-by-audit-token entitlement | |
default 09:59:45.583406+0100 tccd AUTHREQ_ATTRIBUTION: msgID=4507.4, attribution={accessing={identifier=com.crowdcafe.windowmagnet, pid=2122, auid=501, euid=501, binary_path=/Applications/Magnet.app/Contents/MacOS/Magnet}, requesting={identifier=com.obsproject.obs-studio, pid=4507, auid=501, euid=501, binary_path=/Applications/OBS.app/Contents/MacOS/obs}, }, | |
default 09:59:45.605627+0100 runningboardd Acquiring assertion targeting [app<application.com.obsproject.obs-studio.36873184.36873740(501)>:4507] from originator [daemon<com.apple.coreservices.launchservicesd>:101] with description <RBSAssertionDescriptor| "frontmost:4507" ID:177-101-1605 target:4507 attributes:[ | |
<RBSDomainAttribute| domain:"com.apple.laun |