$ npm install -g create-react-app
$ create-react-app my-app
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 // Do not include this if already open! Code goes in theme functions.php. | |
/* | |
* Redirects user to a specific page upon coupon removal. | |
*/ | |
function action_woocommerce_removed_coupon( $coupon_code ) { | |
// Redirection... | |
wp_redirect( $url ); // Replace $url by your page URL. | |
exit; | |
}; |
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
Key Sublime Text 3.2.1 Build 3207 | |
----- BEGIN LICENSE ----- | |
Member J2TeaM | |
Single User License | |
EA7E-1011316 | |
D7DA350E 1B8B0760 972F8B60 F3E64036 | |
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD | |
FA0A2ABE 25F65BD8 D51458E5 3923CE80 | |
87428428 79079A01 AA69F319 A1AF29A4 | |
A684C2DC 0B1583D4 19CBD290 217618CD |
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
#!/usr/bin/env python | |
import os | |
import re | |
import subprocess | |
user="onlyme" | |
password="xxxxxxx" | |
proc = subprocess.Popen(["mysql", "-u" + user, "-p" + password], | |
stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr = subprocess.PIPE) |
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 | |
/** | |
* Content from http://en.wikipedia.org/wiki/List_of_HTTP_status_codes | |
**/ | |
return array( | |
100 => 'Continue', | |
101 => 'Switching Protocols', | |
102 => 'Processing', // WebDAV; RFC 2518 | |
200 => 'OK', |
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
/* Mobile */ | |
@media only screen and (max-width: 767px) { | |
[class*="mobile hidden"], | |
[class*="tablet only"]:not(.mobile), | |
[class*="computer only"]:not(.mobile), | |
[class*="large screen only"]:not(.mobile), | |
[class*="widescreen only"]:not(.mobile), | |
[class*="or lower hidden"] { | |
display: none !important; | |
} |
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 | |
$countries = array | |
( | |
'AF' => 'Afghanistan', | |
'AX' => 'Aland Islands', | |
'AL' => 'Albania', | |
'DZ' => 'Algeria', | |
'AS' => 'American Samoa', | |
'AD' => 'Andorra', |
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
jQuery('#ai1wm-backups-list').on('click', '.ai1wm-backup-restore', function (e) { | |
e.preventDefault(); | |
var modelimport = new Ai1wm.Import(); | |
var storage = Ai1wm.Util.random(12); | |
var options = Ai1wm.Util.form('#ai1wm-backups-form').concat({ name: 'storage', value: storage }).concat({ name: 'archive', value: jQuery(this).data('archive') }); | |
// Set global params | |
modelimport.setParams(options); |
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
import React, { Component } from 'react'; | |
export default class CanvasRing extends Component { | |
constructor(props) { | |
super(props); | |
} | |
initrender(){ | |
const canvas = ReactDOM.findDOMNode(this.refs.canvas_ring); |
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 | |
/** | |
* Plugin Name: Conditional Payment Gateway | |
* Description: Conditional Payment Gateway | |
* Version: 1.0 | |
*/ | |
defined( 'ABSPATH' ) || exit; | |
add_action( 'plugins_loaded',function(){ |