I hereby claim:
- I am camflan on github.
- I am camflan (https://keybase.io/camflan) on keybase.
- I have a public key ASBWldj25UstKpIdjR1041dhtSkquNTiGiIyWP0zrYHGpAo
To claim this, I am signing this object:
import functools | |
import time | |
from django.db import connection | |
def timer(func): | |
@functools.wraps(func) | |
def wrapper_timer(*args, **kwargs): | |
tic = time.perf_counter() |
import { useState, useCallback, useLayoutEffect } from "react"; | |
export interface DimensionObject { | |
width: number; | |
height: number; | |
top: number; | |
left: number; | |
x: number; | |
y: number; | |
right: number; |
const DEFAULT_CACHE_KEY_FN = JSON.stringify; | |
/** | |
* @typedef MakeCacheReaderOptions | |
* @property {Function} [makeCacheKey] - Fn to serialize loader args for caching. Defaults to JSON.stringify | |
* @property {Map} [cacheMap] - Existing map to use for promise caching | |
*/ | |
export type MakeCacheReaderOptions<LoaderArgs extends unknown[]> = { | |
makeCacheKey?: (args: LoaderArgs) => string; | |
cacheMap?: Map<string, Promise<unknown>>; |
<?php | |
/** | |
* QueryCounter | |
* A class useful for debugging mysqli connections | |
*/ | |
class QueryCounter { | |
public $connection; | |
private $stats = []; |
I hereby claim:
To claim this, I am signing this object:
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$type-scale: ( | |
-15:0.066667rem, | |
-10:0.186rem, | |
-9:0.211rem, | |
-8:0.26rem, | |
-7:0.295rem, |
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$type-scale: ( | |
-15:0.066667rem, | |
-10:0.186rem, | |
-9:0.211rem, | |
-8:0.26rem, | |
-7:0.295rem, |
#! /bin/sh | |
CURRENT_DAY=`date '+%Y%m%d'` | |
/usr/sbin/ioreg -w0 -l | grep Capacity | cut -d " " -f 17-50 > $HOME/Dropbox/backups/battery/$CURRENT_DAY.log |
"insert/swap iScript debug statements {{{ | |
function! Logging(level) | |
let base_string = 'debug.log("' . a:level . '", "' | |
let curr_line = getline('.') | |
let match = match(curr_line, "debug") | |
if match == -1 | |
execute "normal i" . base_string | |
else |