Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am bradleyhopewsj on github.
  • I am bradleyhope (https://keybase.io/bradleyhope) on keybase.
  • I have a public key ASAe__vHt9I3ZUEa6SC7b7ojvEmqwmzHuJTctIJMJqAf-wo

To claim this, I am signing this object:

View log
lastModified: 1537888732878
lastModifiedDate: Tue Sep 25 2018 22:18:52 GMT+0700 (Indochina Time) {}
name: "maxresdefault.jpg"
preview: "blob:http://localhost:3000/52472869-3054-4cc3-b380-f833128bc380"
size: 96530
type: "image/jpeg"
webkitRelativePath: ""
View components-blogs-3.phtml
<div class="container">
<div class="row">
<div class="col-md-10 ml-auto mr-auto">
<h2 class="title">Latest Blogposts 3</h2>
<br>
<div class="card card-plain card-blog mt-6">
<div class="row">
<div class="col-md-4">
<div class="card-header card-header-image">
<img class="img img-raised w-100" src="/assets/img/styleguide/card-blog4.jpg">
View main.c
//...Line 46
// The GPIO pin that is connected to the relay on the Sonoff Basic.
const int relay_gpio = 3; //RX
// The GPIO pin that is connected to the button on the Sonoff Basic.
const int button_gpio = 1; //TX but not used
// NEW
#include "toggle.h"
// The GPIO pin that is connected to the header on the Sonoff Basic (external switch).
const int toggle_gpio = 2; //GPIO 2
View active.md

Most active GitHub users (git.io/top)

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Tue, 06 Dec 2016 17:06:46 GMT till Wed, 06 Dec 2017 17:06:46 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
  .filter(user => user.followers > 1000)
View file-structure.txt
├── CHANGELOG.md
├── __tests__
│   └── button.spec.js
├── lib
│   ├── index.common.js
│   ├── index.common.js.map
│   ├── index.umd.js
│   ├── index.umd.js.map
│   ├── index.umd.min.js
│   ├── index.umd.min.js.map
View components-blogs-2.phtml
<div class="container">
<div class="row">
<div class="col-md-10 ml-auto mr-auto">
<h2 class="title">Latest Blogposts 2</h2>
<br>
<div class="row">
<div class="col-md-4">
<div class="card card-plain card-blog mt-6">
<div class="card-header card-header-image">
<a href="">
View date_formats.txt
Directive Meaning Notes
%a Locale’s abbreviated weekday name.
%A Locale’s full weekday name.
%b Locale’s abbreviated month name.
%B Locale’s full month name.
%c Locale’s appropriate date and time representation.
%d Day of the month as a decimal number [01,31].
%H Hour (24-hour clock) as a decimal number [00,23].
%I Hour (12-hour clock) as a decimal number [01,12].
View test_signup_login_user.py
from django.test import Client, TestCase
from django.urls import reverse
from .models import Users
class BaseTest(TestCase):
'''Instantiate tests
'''
@classmethod
View devserver.css.client.js
var url = require('url');
var socket = require('webpack-dev-server/client/socket');
function getCurrentScriptSource() {
// `document.currentScript` is the most accurate way to find the current script,
// but is not supported in all browsers.
if (document.currentScript) {
return document.currentScript.getAttribute('src');
}
// Fall back to getting all scripts in the document.