Skip to content

Instantly share code, notes, and snippets.

View erikwiffin's full-sized avatar

Erik Wiffin erikwiffin

  • Engineering Manager @ Resilia
View GitHub Profile
@erikwiffin
erikwiffin / glyphicon-checkbox.css
Created December 14, 2016 23:02
Replace native checkboxes with their glyphicon equivalent
input[type="checkbox"].glyphbox {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
line-height: 0;
outline: none;
}
input[type="checkbox"].glyphbox:before {
font-family: 'Glyphicons Halflings';
font-size: 18px;
version: '2'
services:
smart:
build:
context: /home/ubuntu/auth-proxy/
dockerfile: Dockerfile
environment:
- BASE_URL=http://api.dev.syncfor.science:9000
volumes:
// Awesome defaults
$('#file').RSFileUpload();
// Custom onupload
$('#file').RSFileUpload({
progressBar: '#progress-bar',
onupload: function () {
/// do the thing
}
})
<?php
class Address
{
public function __construct(
$street1,
$street2,
$city,
$state,
$zip,
{
"patient": {
"name": "John Smith",
"gender": "M",
"birthDate": "1970-01-01"
},
"observations": [
{
"name": "Heart Rate",
"value": {
[ec2]
localhost ansible_connection=local
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
@erikwiffin
erikwiffin / gist:5381059
Created April 14, 2013 02:07
nginx.conf
server {
## Your website name goes here.
server_name erik.wiffin.com;
## Your only path reference.
root /var/www/erik.wiffin.com/;
listen 8080;
## This should be in your http block and if it is, it's not needed here.
index index.html index.htm index.php;
include conf.d/drop;