Skip to content

Instantly share code, notes, and snippets.

View exiva's full-sized avatar

Travis La Marr exiva

View GitHub Profile
function WarningBanner(props) {
if (!props.warn) {
return null;
}
return (
<Section>
<Text>Hai.</Text>
</Section>
);
Apr 13 14:31:46 MacBook-Pro opendirectoryd[165]: 548.10 - Client: ReportCrash, UID: 0, EUID: 0, GID: 0, EGID: 0
Apr 13 14:31:46 MacBook-Pro opendirectoryd[165]: 548.10 - ODNodeRelease request, NodeID: 00CF0753-691F-40BE-B169-FD79F94FF20F
Apr 13 14:31:46 MacBook-Pro opendirectoryd[165]: 548.10, Node: /Local/Default - ODNodeRelease completed
Apr 13 14:31:46 MacBook-Pro ReportCrash[548]: Process: macOS Post Install [533]
Apr 13 14:31:46 MacBook-Pro ReportCrash[548]: Path: /Applications/Utilities/macOS Post Install.app/Contents/MacOS/macOS Post Install
Apr 13 14:31:46 MacBook-Pro ReportCrash[548]: Identifier: dd1.macOS-Post-Install
Apr 13 14:31:46 MacBook-Pro ReportCrash[548]: Version: 4.3.1 (???)
Apr 13 14:31:46 MacBook-Pro ReportCrash[548]: Code Type: X86-64 (Native)
Apr 13 14:31:46 MacBook-Pro ReportCrash[548]: Parent Process: UtilitiesLauncher [175]
Apr 13 14:31:46 MacBook-Pro ReportCrash[548]: Responsible: macOS Post Install
@exiva
exiva / telegram_bot.py
Created January 13, 2017 06:39
boilerplate telegram bot code with decorators for admin, private chat and public chat.
from telegram.ext import (Updater, CommandHandler, MessageHandler, Filters)
from functools import wraps
def admin_required(func):
@wraps(func)
def getAdmins(bot, chat_id):
return [admin.user.id for admin in bot.getChatAdministrators(chat_id)]
def check_admin(*args, **kwargs):
if args[1].message.chat.type == "private":
# Hey Emacs, this is a -*- makefile -*-
##############################################################################
# Compiler settings
#
CC = avr-gcc
OBJCOPY = avr-objcopy
OBJDUMP = avr-objdump
SIZE = avr-size
AR = avr-ar rcs
NM = avr-nm
@exiva
exiva / waf.py
Created February 22, 2016 05:01
import os
try:
from sh import CommandNotFound, jshint, cat, uglifyjs, ErrorReturnCode_2
hint = True
except (ImportError, CommandNotFound):
hint = None
top = '.'
out = 'build'
{
"appKeys": {},
"capabilities": [
""
],
"companyName": "rapoport@shermans.net",
"longName": "DCPexper",
"projectType": "native",
"resources": {
"media": [
#include <pebble.h>
static Window *window;
//Setup Layers.
static Layer *year_layer;
static Layer *time_layer;
static Layer *date_layer;
static Layer *top_random;
static Layer *bottom_random;
==> Upgrading pebble/pebble-sdk/pebble-sdk
==> Downloading https://github.com/pebble/pebble-tool/archive/v4.0-rc4.zip
==> Downloading from https://codeload.github.com/pebble/pebble-tool/zip/v4.0-rc4
######################################################################## 100.0%
==> Cloning https://github.com/pebble/pypkjs.git
Updating /Library/Caches/Homebrew/pebble-sdk--pypkjs--git
==> Checking out branch stable
==> Downloading https://pypi.python.org/packages/source/b/backports.ssl_match_hostname/backports.ssl_match_hostname-3.4.0.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/pebble-sdk--backports.ssl-match-hostname-3.4.0.2.tar.gz
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cellar/pebble-sdk/4.0-rc4/libexec/vendor --single-version-externally-managed --record=installed.txt
travis at Travis-MacBook-Pro in ~/Projects/voiceTweets on master [+!?]
$ pebble build
Setting top to : /Users/travis/Projects/voiceTweets
Setting out to : /Users/travis/Projects/voiceTweets/build
Found Pebble SDK for chalk in: : /Users/travis/Library/Application Support/Pebble SDK/SDKs/current/sdk-core/pebble/chalk
Checking for program gcc,cc : arm-none-eabi-gcc
Checking for program ar : arm-none-eabi-gcc-ar
Found Pebble SDK for basalt in: : /Users/travis/Library/Application Support/Pebble SDK/SDKs/current/sdk-core/pebble/basalt
Checking for program gcc,cc : arm-none-eabi-gcc
Checking for program ar : arm-none-eabi-gcc-ar
import os
try:
from sh import CommandNotFound, jshint, cat, uglifyjs, ErrorReturnCode_2
hint = True
except (ImportError, CommandNotFound):
hint = None
top = '.'
out = 'build'