Moved to https://github.com/krues8dr/SafeObj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Translate a non-standard object into an associative array object. | |
* Super-useful for dealing with simplexml objects. | |
*/ | |
function simpleXML_to_object($obj) | |
{ | |
$data = new StdClass(); | |
if( | |
(is_object($obj) && get_class($obj) == 'SimpleXMLElement') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Serve a local static website | |
# Requires jq for node package info! https://stedolan.github.io/jq/ | |
typeset -A KJOBSLIST | |
KSERVE_ICON_DEFAULT="\uf013" | |
KSERVE_ICON_SERVE="\uf233" | |
KSERVE_ICON_BUILD="\uf021" | |
# Serve the current directory as a website at port 8000 | |
function kserve() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Easier clay | |
recipes.addShapeless('bigfork_clay',<minecraft:clay>*4,[<minecraft:dirt>,<minecraft:dirt>,<minecraft:dirt>,<minecraft:dirt>]); | |
// Easier leather, replace monster jerky from Tinkers Construct | |
mods.tconstruct.Drying.removeRecipe(<tconstruct:edible:10>, <minecraft:rotten_flesh>); | |
mods.tconstruct.Drying.addRecipe(<minecraft:leather>,<minecraft:rotten_flesh>, 100); | |
// Add back missing Botania flowers with Easy Pickings flowers | |
mods.botania.Apothecary.addRecipe(<easypickings:flower_daybloom>,[<ore:petalYellow>,<ore:petalYellow>,<ore:petalOrange>,<ore:petalLightBlue>]); | |
mods.botania.Apothecary.addRecipe(<easypickings:flower_nightshade>,[<ore:petalBlack>,<ore:petalBlack>,<ore:petalPurple>,<ore:petalGray>]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************* TYPOGRAPHY *******************/ | |
/* Variables & Mixins */ | |
/* Fonts & weights */ | |
@font-stack-main: "franklin-gothic-urw-cond", "Helvetica Neue", "Helvetica", "Arial", sans-serif; | |
@font-weight-book: 400; | |
@font-weight-medium: 500; | |
@font-weight-demi: 700; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const gulp = require('gulp'); | |
const imageResize = require('gulp-image-resize'); | |
const path = require('path'); | |
const del = require('del'); | |
const concat = require('gulp-concat'); | |
const uglify = require('gulp-uglify-es').default; | |
const replace = require('gulp-replace'); | |
const clean = require('gulp-clean'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.25332435965538025</real> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat ./1-219.1.txt | convert \ | |
-font Courier \ | |
text:- \ | |
-rotate `convert null: -format '%[fx:rand()*15-7]' info:` \ | |
-attenuate 0.1247 +noise Gaussian \ | |
-colorspace Gray \ | |
1-219.1.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LogFormat "%h %l %u %t \"%m http://%{Host}i%U %H\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" hostnames | |
CustomLog "/private/var/log/apache2/access_log" hostnames |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('layouts/master') | |
@section('title') | |
<title>Mod Library - TechnicSolder</title> | |
@stop | |
@section('content') | |
<div class="page-header"> | |
<h1>Mod Library</h1> | |
</div> | |
<div class="panel panel-default"> | |
<div class="panel-heading"> |