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
//works on my local machine, white screens the server | |
echo str_replace( ['<ul>','</ul>'], '', $string ); | |
//works great on both | |
echo str_replace( array('<ul>','</ul>'), '', $string ); | |
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
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
alias ls='ls -GFh' |
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
xcodebuild -target "~/projects/mine/Ejecta/Kick Bot.xcodeproj" -scheme "Ejecta" -configuration "Release" -sdk iphoneos7.1 -arch "armv7" CONFIGURATION_BUILD_DIR="TestBuild" ONLY_ACTIVE_ARCH=NO |
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
/* MDP Color Pack */ | |
$reports-light-blue: rgba( 94,125,172,1); | |
$reports-blue: rgba( 74,108,158,1); | |
$light-grey-blue: rgba( 70, 91,113,1); | |
$grey-blue: rgba( 58, 78, 99,1); | |
$mortenson-blue: rgba( 24, 79,166,1); | |
$make-it-grey: rgba( 70, 70, 70,1); | |
$dark-grey: rgba( 70, 70, 70,1); | |
$not-black: rgba( 27, 29, 30,1); |
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
{ | |
"teams":{ | |
"1":{ | |
"seed":"1", | |
"name":"Florida", | |
"record":"32–2", | |
"rank":"1" | |
}, | |
"2":{ | |
"seed":"16", |
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
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Splat=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ | |
var Entity = _dereq_("./entity"); | |
function AnimatedEntity(x, y, width, height, sprite, spriteOffsetX, spriteOffsetY) { | |
this.sprite = sprite; | |
this.spriteOffsetX = spriteOffsetX; | |
this.spriteOffsetY = spriteOffsetY; | |
Entity.call(this, x, y, width, height); | |
} | |
AnimatedEntity.prototype |
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
#!/bin/bash | |
logo() { | |
cat <<"EOT" | |
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ | |
______ ______ __ __ ______ ______ __ __ ______ __ __ | |
/\ ___\ /\ == \ /\ \/\ \ /\ ___\ /\__ _\ /\ --./ \ /\ __ \ /\ \ /\ \ | |
\ \ \____ \ \ __< \ \ \_\ \ \ \___ \ \/_/\ \/ \ \ \-./\ \ \ \ __ \ \ \ \ \ \ \____ | |
\ \_____\ \ \_\ \_\ \ \_____\ \/\_____\ \ \_\ \ \_\ \ \_\ \ \_\ \_\ \ \_\ \ \_____\ |
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
#!/bin/bash | |
# A Simple Shell Script to Backup Red Hat / CentOS / Fedora / Debian / Ubuntu Apache Webserver and SQL Database | |
# Path to backup directories | |
DIRS="/www" | |
ETC="/etc" | |
HOME="/home" | |
# Store todays date | |
NOW=$(date +"%F") | |
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
var tName; | |
// center | |
public var center : Vector2; | |
var centerX : float; | |
var centerY : float; | |
var height : float; | |
var halfHeight : float; | |
var width : float; |
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
function fisherYates(myArray,nb_picks){ | |
for (i = myArray.length-1; i > 1 ; i--){ | |
var r = Math.floor(Math.random()*i); | |
var t = myArray[i]; | |
myArray[i] = myArray[r]; | |
myArray[r] = t; | |
} | |
return myArray.slice(0,nb_picks); | |
} |