This file contains hidden or 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> | |
<script src="node_modules/yamljs/dist/yaml.js"></script> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
<pre> |
This file contains hidden or 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
'user strict'; | |
var Cart = {}; | |
(function($){ | |
if (Cart) { | |
jQuery.extend(Cart, { | |
config: function(config) { | |
if (!this.config) { |
This file contains hidden or 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
#!/usr/bin/env php | |
<?php | |
class RecordFile { | |
var $parser; | |
var $records = []; | |
function __construct($filename = null) { |
This file contains hidden or 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
#!/usr/bin/php | |
<?php | |
if (!class_exists("OutputWriter")) { | |
// To write to log file, include this file | |
// with OutputWriter already defined. | |
class OutputWriter { | |
function write($message) { | |
echo $message; |
This file contains hidden or 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 | |
/* | |
* @file | |
*/ | |
use Symfony\Component\Console\Command\Command; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; |
This file contains hidden or 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
From 123e77bfa8983a27fe873a31868bfff83d548929 Mon Sep 17 00:00:00 2001 | |
From: Tom Stovall <[email protected]> | |
Date: Wed, 13 May 2015 11:51:53 -0700 | |
Subject: [PATCH] D7 backport: MySQL driver does not support full UTF-8 | |
(emojis, asian symbols, mathematical symbols) | |
--- | |
includes/database/mysql/database.inc | 9 ++++++--- | |
includes/database/mysql/schema.inc | 4 ++-- | |
2 files changed, 8 insertions(+), 5 deletions(-) |
This file contains hidden or 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 | |
use Symfony\Component\Console\Application; | |
use Symfony\Component\Console\Command\Command; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
This file contains hidden or 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
$button = '<button data-sku="000-00002" class="magento-token-add-to-cart btn btn-default magento-token-add-to-cart-processed" id="magento-token-add-to-cart-000-00002">Add To Cart</button>'; | |
$xmlOpeningString = '<?xml version="1.0" standalone="yes"?>'; | |
$parsed = new SimpleXMLElement($xmlOpeningString.$button); | |
var_dump((string)$parsed); | |
// string(11) "Add To Cart" | |
var_dump((string)$parsed == "Add To Cart"); | |
// false DOH! |
This file contains hidden or 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'; | |
/*global $:false */ | |
/*global FastClick:false */ | |
/*jshint unused:vars */ | |
/*jshint quotmark:false */ | |
angular.module('license') | |
.controller('NameCheck', ['$scope', '$window', 'License', '$http', '$modal', | |
function ($scope, $window, License, $http, $modal) { |
This file contains hidden or 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 | |
export PROFILE_PATH=<<-'PROFILE' | |
export PATH=$HOME/.composer/vendor/bin:/usr/local/sbin:/usr/local/bin:$PATH | |
PROFILE | |
case $1 in | |
install) | |
export homebrew=`which brew` |