Skip to content

Instantly share code, notes, and snippets.

View freshyill's full-sized avatar
💭
😎 Cool

Chris Coleman freshyill

💭
😎 Cool
View GitHub Profile
@freshyill
freshyill / SassMeister-input-HTML.html
Last active August 29, 2015 14:19
Generated by SassMeister.com.
<div class="grid-container">
<ul class="media-grid media-grid--2">
<li><img src="//placehold.it/400x300"><h3>Headline this might get a bit long just to show off flexbox handling</h3></li>
<li><img src="//placehold.it/400x300"><h3>Headline</h3></li>
<li><img src="//placehold.it/400x300"><h3>Headline</h3></li>
<li><img src="//placehold.it/400x300"><h3>Headline</h3></li>
<li><img src="//placehold.it/400x300"><h3>Headline</h3></li>
<li><img src="//placehold.it/400x300"><h3>Headline</h3></li>
</ul>
@freshyill
freshyill / SassMeister-input-HTML.html
Created May 9, 2015 02:42
Generated by SassMeister.com.
<div class="grid-container">
<ul class="media-grid media-grid--2">
<li><img src="//placehold.it/400x300"><h3>Headline this might get a bit long just to show off flexbox handling</h3></li>
<li><img src="//placehold.it/400x300"><h3>Headline</h3></li>
<li><img src="//placehold.it/400x300"><h3>Headline</h3></li>
<li><img src="//placehold.it/400x300"><h3>Headline</h3></li>
<li><img src="//placehold.it/400x300"><h3>Headline</h3></li>
<li><img src="//placehold.it/400x300"><h3>Headline</h3></li>
</ul>
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Every Vagrant virtual environment requires a box to build off of.
# Named boxes, like this one, don't need a URL, since the are looked up
@freshyill
freshyill / wp-config.php
Created November 27, 2015 06:09 — forked from MikeNGarrett/wp-config.php
All those damned wp-config constants you can never remember.
<?php
// PHP memory limit for this site
define( 'WP_MEMORY_LIMIT', '128M' );
// Explicitely setting url
define( 'WP_HOME', 'http://domain.com' );
define( 'WP_SITEURL', 'http://domain.com' );
// Set url to... whatever.
define( 'WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] );
@freshyill
freshyill / Rebel_Alliance.svg
Last active May 1, 2017 03:05
Rebel Alliance
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
const fs = require('fs');
const convert = require('xml2json');
const xmlDir = 'final_xml';
fs.readdir(xmlDir, (err, xmlList) => {
for (let xmlFile of xmlList) {
fs.readFile(xmlDir + "/" + xmlFile, "utf-8", (err, fileContents) => {
@freshyill
freshyill / child.html
Created May 4, 2017 04:42
Pym.js test
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Child</title>
<style media="screen">
#child {
color: fuchsia;
font-weight: bold;

Keybase proof

I hereby claim:

  • I am freshyill on github.
  • I am freshyill (https://keybase.io/freshyill) on keybase.
  • I have a public key ASCQl-BDW0UfZrr4mEIklk7u774J8jmiNn0I1gY7WRYd-Ao

To claim this, I am signing this object:

@freshyill
freshyill / index.js
Last active June 18, 2017 19:54
Convert JATS XML to JSON with Camaro
const fs = require("fs");
const transform = require("camaro");
const dedent = require("deline");
const xmlDir = "test_xml";
fs.readdir(xmlDir, (err, files) => {
files.forEach(file => {
const xml = fs.readFileSync(xmlDir + "/" + file, "utf-8", (err, data) => {
if (err) throw err;
@freshyill
freshyill / count.sh
Last active April 25, 2018 15:40
Count lines in a directory of files
COUNTER=0;
for files in *;
do
if test -f "$files"; then
LINES=`wc -l $files | awk '{print $1}'`
fi
COUNTER=`expr $COUNTER + $LINES`;
done