Each pixel represents approximately one byte.
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 <stdlib.h> | |
#include <memory.h> | |
#include <malloc.h> | |
#ifndef _ringbuffer_h | |
#define _ringbuffer_h | |
// semantics: buffer goes from start to end-1, start == end -> empty or full, see 'full' flag | |
#define ringBuffer_typedef(T, NAME) \ | |
typedef struct { \ |
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 bash | |
if [ -z "$1" ]; then | |
echo "Usage: bash apifier-get-results <execution_id>" | |
exit 1 | |
fi | |
FORMAT="csv" | |
EXECUTION_ID="$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
#!/usr/bin/env bash | |
cat ./build/pebble-app.map | | |
# pick important part of file | |
sed -n -e "/^ \*(\.text\.\*)/,/^ \*(\.rodata)/p" | | |
# remove first and last line | |
sed -e "1d" -e "\$d" | | |
# ensure every function is on single line: |
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
Weathergraph shows: | |
🕑 Time, of course :) | |
🏃 Daily steps | |
❤️ Current heart rate | |
⛅️ Precise forecast from Yr.no (Dark Sky/Forecast.io coming soon!) | |
🌡 Hour-by-hour temperature (orange chart at the bottom) | |
🌧 Hour-by-hour precipitation - rain and snow (blue chart overlay) | |
☁️ Hour-by-hour ☁️ cloudiness (cloud cover) and ☀️ sunshine (clouds on top + sun rays) | |
🌤 Daily minimum and maximum (overlaid above chart) |
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
Original Message | |
Message ID <20171013084129.684C860593@bazos-www2.superhosting.cz> | |
Created at: Fri, Oct 13, 2017 at 10:41 AM (Delivered after 0 seconds) | |
From: jardalukas@gmail.com | |
To: keff85@gmail.com | |
Subject: Bazos.cz - odpoved na inzerat 80580804 - Fitbit Ionic - nejlepsi fitness tracker, novy | |
SPF: PASS with IP 88.86.119.246 Learn more | |
DMARC: 'FAIL' Learn more |
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
install_git_lfs() | |
{ | |
set -e | |
# Get out if git-lfs is already installed | |
if $(git-lfs &> /dev/null); then | |
echo "git-lfs is already installed" | |
return | |
fi | |
GIT_LFS_BUILD=$HOME/.bin |
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
The MIT License (MIT) | |
Copyright (c) 2014 Tomas Kafka | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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
Detail | |
<html prefix="og: http://ogp.me/ns#"> | |
<head> | |
<title>{advert.title ořezaný na 60 znaků, případně s trojtečkou pokud jsme ho ořezali} · dobro.cz</title> <!-- ˜60 chars --> | |
<meta name="description" content="Nabídka pomoci na dobro.cz — pomáhejme si v době koronaviru"> <!-- Nabidka ˜150 chars --> | |
<meta name="description" content="Žádost o pomoc na dobro.cz — pomáhejme si v době koronaviru"> <!-- Poptavka ˜150 chars --> | |
<meta property="og:title" content="{advert.title}"> | |
<meta property="og:description" content="Nabídka pomoci na dobro.cz — pomáhejme si v době koronaviru"> <!-- Nabidka --> | |
<meta property="og:description" content="Žádost o pomoc na dobro.cz — pomáhejme si v době koronaviru"> <!-- Poptavka --> |
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
extension String { | |
func padding(leftTo paddedLength: Int, withPad pad: String = " ", startingAt padStart: Int = 0) -> String | |
{ | |
if count < paddedLength { | |
let rightPadded = padding(toLength: max(count, paddedLength), withPad: pad, startingAt: padStart) | |
return "".padding(toLength: paddedLength, withPad: rightPadded, startingAt: count % paddedLength) | |
} else { | |
return self | |
} | |
} |