Skip to content

Instantly share code, notes, and snippets.

View delianides's full-sized avatar

Drew Delianides delianides

View GitHub Profile
import React from "react";
import chai, { expect } from "chai";
import chaiEnzyme from "chai-enzyme";
import { shallow } from "enzyme";
import Spinner from "./../../../../src/core/components/loading/Spinner";
chai.use(chaiEnzyme());
describe("Spinner component", () => {
import React from "react";
import { expect } from "chai";
import { shallow } from "enzyme";
import Spinner from "./../../../../core/components/loading/Spinner";
describe("Spinner", () => {
it("has the default styles", () => {
const wrapper = shallow(<Spinner />);
console.log(wrapper);
import React, { Component, PropTypes} from "react"
// import Styles from "./spinner.css"
function getClasses(mergeClasses) {
// let classes = [
// Styles.loader
// ]
if (mergeClasses) {
import { Component, PropTypes} from "react"
import Styles from "./spinner.css"
function getClasses(mergeClasses) {
let classes = [
Styles.loader
]
if (mergeClasses) {
/*
* USB Wiegand Interface Reader for Arduino Leanardo
*
* Version 1.0 Dan Julio, May 18, 2013
*
* This code is released into the public domain. It is absolutely unwarranted and unsupported
* meaning it may or may not work for you and you have to deal with that.
* running on the computer. The firmware may also be used in a stand-alone fashion just to read
* 26-bit cards and display their card number.
*
hostname: corenode1
write_files:
- path: /etc/systemd/network/static.network
permissions: 0644
content: |
[Match]
Name=ens18
[Network]
Address=10.0.30.70/24
@delianides
delianides / _service.md
Created January 21, 2016 16:40 — forked from naholyr/_service.md
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
# Description:
# Create a database backup and upload it to S3
#
# Dependencies:
# "aws-sdk": "^2.2.20"
#
# Configuration:
# HUBOT_OPS_ROOM - Private room so only certain people have access
@delianides
delianides / gist:23ee95c77ade5c9738b4
Created July 8, 2015 15:46
launch-configuration failure
2015/07/08 11:39:14 [DEBUG] apply: aws_launch_configuration.etcd-launch-config: executing Apply
aws_launch_configuration.etcd-launch-config: Creating...
associate_public_ip_address: "" => "0"
ebs_block_device.#: "" => "<computed>"
ebs_optimized: "" => "<computed>"
2015/07/08 11:39:14 terraform-provider-aws: 2015/07/08 11:39:14 [DEBUG] Describing AMI "ami-93ea17f8" to get root block device name
enable_monitoring: "" => "<computed>"
iam_instance_profile: "" => "etcd-node"
image_id: "" => "ami-93ea17f8"
E0319 15:47:36.520766 67833 cmd.go:335] perrynoble-roll.yaml must specify a matching key with non-equal value in Selector for perrynoble