I hereby claim:
- I am alexwright on github.
- I am alexw (https://keybase.io/alexw) on keybase.
- I have a public key whose fingerprint is E5AA 7E35 98AC 9D98 297A 6364 148A 922B BCCC 141E
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| require("babel-register")({ | |
| extensions: [ | |
| ".es6", | |
| ".jsx" | |
| ], | |
| presets: [ | |
| "react", | |
| "es2015", | |
| ], | |
| }); |
| #!/usr/bin/env python | |
| import re | |
| import json | |
| STATUS_FILE_PATH = "/var/cache/nagios3/status.dat" | |
| def read_status(): | |
| hosts = {} | |
| services = {} |
| Timber.d("Result_Ok"); | |
| Bundle extras = data.getExtras(); | |
| if (extras != null) { | |
| for (String key : extras.keySet()) { | |
| Timber.d("Extra %s:%s", key, extras.getString(key)); | |
| } | |
| } |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| export SSH_AUTH_SOCK=$(find /tmp/ssh-* -user `whoami` -name agent\* -printf '%T@ %p\n' | sort -k 1nr | sed 's/^[^ ]* //' | head -n 1); |
| a = {foo:{bar:{baz:42}}}; | |
| "foo.bar.baz".split('.').reduce(function(o, i) { return o[i]; }, a); |
| import os | |
| import EXIF | |
| import datetime | |
| work_dir = '../pics' | |
| exif_date_format = '%Y:%m:%d %H:%M:%S' | |
| for dirname, dirnames, filenames in os.walk(work_dir): | |
| for filename in filenames: | |
| old_file_path = os.path.join(work_dir, filename) |
| <!doctype html> | |
| <html> | |
| <head> | |
| </head> | |
| <body> | |
| <h1>Hi</h1> | |
| <div class="widget" style="padding: 2em;"> | |
| <div class="some-menu-whatever"> | |
| <button data-color="red" class="btn-change-color">red</button> | |
| <button data-color="blue" class="btn-change-color">blue</button> |
| def get_commit_activity(self, project): | |
| from datetime import date, timedelta | |
| from pygit2 import Repository | |
| from pygit2 import GIT_SORT_TIME | |
| repo = Repository(project.gitrepo) | |
| weeks = self.get_weeks() | |
| for commit in repo.walk(repo.head.oid, GIT_SORT_TIME): | |
| commit_time = date.fromtimestamp(commit.commit_time) | |
| commit_week = commit_time - timedelta(days=commit_time.weekday()) |