## Magento 1 + SampleData
sudo apt-get update && \
sudo apt-get install -y git wget unzip
git clone https://github.com/OpenMage/magento-mirror.git ./ ;
wget https://raw.githubusercontent.com/Vinai/compressed-magento-sample-data/1.9.1.0/compressed-magento-sample-data-1.9.1.0.tgz ;
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 | |
/** | |
* Looking for tests DependencyInjectionTest.php | |
*/ | |
require_once 'vendor/autoload.php'; | |
interface iCurrency { | |
public function getExchangeRate(); |
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
/** | |
* WordPress snippet | |
* Admin page redirection | |
* Put this inside theme setup function | |
*/ | |
global $pagenow; | |
if ( is_admin() && 'themes.php' == $pagenow && isset( $_GET['activated'] ) ) { |
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
DROP TABLE currency; | |
-- Create table variable | |
CREATE TABLE currency ( | |
country VARCHAR(100), | |
currency VARCHAR(100), | |
code VARCHAR(100), | |
symbol VARCHAR(100) | |
); |
This is a quick guide for installing memcached on a Mac with Homebrew, and starting and stopping it with Lunchy. I hope this tutorial will get your memcached up and running in no time.
Installing Homebrew is super easy. Just paste this in your terminal —
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
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
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
// Name of the struct tag used in examples | |
const tagName = "validate" |
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
package a | |
import "fmt" | |
type Sayer interface { | |
Say() string | |
} | |
type Formal struct{} |
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
import React, { PropTypes, Component } from 'react' | |
import { | |
Animated, | |
ScrollView, | |
Text, | |
View, | |
} from 'react-native' | |
import EStyleSheet from 'react-native-extended-stylesheet' | |
const styles = EStyleSheet.create({ |
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
package main | |
import ( | |
"fmt" | |
) | |
type Item struct{ | |
Id int | |
Name string | |
Qty int |
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
{"_id":{"$oid":"5935accb6df2b7ad2b8b4567"},"color":"camurca/branco","color_value":"1515"} | |
{"_id":{"$oid":"5935accb6df2b7ad2b8b4568"},"color":"branco/azul/rosa/lilas","color_value":"0549"} | |
{"_id":{"$oid":"5935accb6df2b7ad2b8b4569"},"color":"Evora/branco","color_value":"1077"} | |
{"_id":{"$oid":"5935accb6df2b7ad2b8b456a"},"color":"rosa/verde","color_value":"1926"} | |
{"_id":{"$oid":"5935accb6df2b7ad2b8b456b"},"color":"couro-branco","color_value":"1243"} | |
{"_id":{"$oid":"5935accb6df2b7ad2b8b456c"},"color":"pomodoro","color_value":"1739"} | |
{"_id":{"$oid":"5935accb6df2b7ad2b8b456d"},"color":"ype/ebano","color_value":"1060"} | |
{"_id":{"$oid":"5935accb6df2b7ad2b8b456e"},"color":"canela-rustico/amarelo","color_value":"2056"} | |
{"_id":{"$oid":"5935accb6df2b7ad2b8b456f"},"color":"rovere/arena","color_value":"2046"} | |
{"_id":{"$oid":"5935accb6df2b7ad2b8b4570"},"color":"branco/cinza/preto","color_value":"1216"} |
OlderNewer