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
/** | |
* Fix form on checkout page (guest post order) | |
*/ | |
add_action( 'wp_footer', 'soar_repeat_rule_settings', 99 ); | |
function soar_repeat_rule_settings() { | |
if ( is_checkout() ) { | |
?> | |
<script type="text/javascript"> | |
(function($) { |
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 | |
// Define a namespace | |
namespace Startuply\Extensions; | |
// Exit if accessed directly | |
if ( !defined( 'ABSPATH' ) ) exit; | |
/** | |
* Helper class to paginate posts |
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
require('dotenv').config(); | |
module.exports = function (grunt) { | |
grunt.loadNpmTasks('grunt-aws-lambda'); | |
grunt.initConfig({ | |
lambda_invoke: { | |
default: { | |
options: { | |
file_name: 'index.js' | |
} |
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
def reward_function(params): | |
if params["all_wheels_on_track"] and params["steps"] > 0: | |
reward = ((params["progress"] / params["steps"]) * 100) + (params["speed"]**2) | |
else: | |
reward = 0.01 | |
return float(reward) |
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 { useState, useEffect } from 'react'; | |
import { get } from '../utils/rest'; | |
const useProducts = (url, dependencies = []) => { | |
// Set isLoading to true by default to indicate that data is loading | |
const [isLoading, setIsLoading] = useState(true); | |
const [fetchedProducts, setFetchedProducts] = useState([]); | |
const fetchProducts = (params = {}) => | |
get(url, params) |
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 | |
clear | |
echo "INSTALL PRESTASHOP" | |
echo "==================" | |
# Make sure only root can run our script | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script must be run as root" 1>&2 |
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
// ----------Select all helper for Facebook pixel---------------------------------------------- | |
// | |
// ==UserScript== | |
// @name Select All Checkboxes on Facebook Pixel Page | |
// @namespace r007.github.com/ | |
// @version 0.01 | |
// @description Multi-select a range of checkboxes | |
// @include http*://business.facebook.com/ads/manager/* | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Google Sheets SVG chart copier | |
// @namespace https://github.com/r007 | |
// @version 0.2 | |
// @description Auto copies SVG code when user clicks on chart | |
// @author Sergey Monin (https://github.com/r007) | |
// @match *://docs.google.com/spreadsheets/* | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js | |
// @grant GM_setClipboard | |
// ==/UserScript== |
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
error library/stylesheets/themes/aqua-theme.css | |
undefined method `start_with?' for nil:NilClass | |
/var/lib/gems/1.9.1/gems/compass-core-1.1.0.alpha.3/lib/compass/core/http_util.rb:17:in `expand_url_path' | |
/var/lib/gems/1.9.1/gems/compass-core-1.1.0.alpha.3/lib/compass/core/http_util.rb:45:in `compute_relative_path' | |
/var/lib/gems/1.9.1/gems/compass-core-1.1.0.alpha.3/lib/compass/core/sass_extensions/functions/urls.rb:25:in `stylesheet_url' | |
/var/lib/gems/1.9.1/gems/sass-3.4.12/lib/sass/script/tree/funcall.rb:139:in `_perform' | |
/var/lib/gems/1.9.1/gems/sass-3.4.12/lib/sass/script/tree/node.rb:50:in `perform' | |
/var/lib/gems/1.9.1/gems/sass-3.4.12/lib/sass/tree/visitors/perform.rb:394:in `visit_prop' | |
/var/lib/gems/1.9.1/gems/sass-3.4.12/lib/sass/tree/visitors/base.rb:36:in `visit' | |
/var/lib/gems/1.9.1/gems/sass-3.4.12/lib/sass/tree/visitors/perform.rb:158:in `block in visit' |