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 typing import List, Dict | |
| import random | |
| import numpy as np | |
| import sys | |
| Actions = ['B', 'C'] # bet/call vs check/fold | |
| class InformationSet(): | |
| def __init__(self): | |
| self.cumulative_regrets = np.zeros(shape=len(Actions)) |
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
| <div class="zoom-gallery"> | |
| <div data-slide-id="zoom" class="zoom-gallery-slide active"> | |
| <a href="https://magictoolbox.sirv.com/images/magiczoomplus/nike-01.jpg" class="MagicZoom" id="zoom-v"> | |
| <img src="https://magictoolbox.sirv.com/images/magiczoomplus/nike-01.jpg?scale.width=400"/> | |
| </a> | |
| </div> | |
| <div data-slide-id="video-1" class="zoom-gallery-slide video-slide"> | |
| <iframe width="560" height="315" src="https://www.youtube.com/embed/J91IcJE6Clg" frameborder="0" allowfullscreen></iframe> | |
| </div> | |
| <div data-slide-id="video-2" class="zoom-gallery-slide video-slide"> |
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 FFMpeg\Media\Audio; | |
| use FFMpeg\Format\AudioInterface; | |
| use FFMpeg\Filters\Audio\AudioFilterInterface; | |
| class ConcatAudioFilter implements AudioFilterInterface | |
| { | |
| private $files; | |
| private $priority; |
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 | |
| ## Author: Ken Goldfarb <[email protected]> | |
| ## https://github.com/kengoldfarb | |
| ## | |
| ## This script will install Nginx+Pagespeed with PHP-FPM 5.5.x | |
| ## It's testsed working on a stock AWS Ubuntu 14.04 image | |
| ## | |
| ## BONUS: Oh-my-zsh installation included! |
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 | |
| echo "This script will rebuild a Debian style package (deb) of latest stable" | |
| echo "Nginx. The original deb is from nginx.org apt repository." | |
| echo | |
| echo "This will prompt you yes or no on a few changes to the build as well as" | |
| echo "it will compile and package the latest Google NGX Pagespeed module." | |
| echo | |
| echo "This is built and tested on Ubuntu 12.04 LTS, fresh OS install." | |
| echo "There are no guarantees, and I take no liability if it breaks, but it" |
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 | |
| echo "This script will rebuild a Debian style package (deb) of latest stable" | |
| echo "Nginx. The original deb is from nginx.org apt repository." | |
| echo | |
| echo "This will prompt you yes or no on a few changes to the build as well as" | |
| echo "it will compile and package the latest Google NGX Pagespeed module." | |
| echo | |
| echo "This is built and tested on Ubuntu 14.04 LTS, fresh OS install." | |
| echo "There are no guarantees, and I take no liability if it breaks, but it" |
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 | |
| langs=('eng' 'eng-1M' 'eng-us' 'eng-gb' 'eng-fiction' 'chi-sim' 'fre' 'ger' 'heb' 'ita' 'rus' 'spa') | |
| if [ $# -le 1 ] | |
| then | |
| echo "Usage: $0 [LANGUAGE] [N]" >&2 | |
| exit 1 | |
| fi |
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 | |
| /* gform_pre_submission will do all forms. gform_pre_submission_1 will do a form with an ID of 1 | |
| * Keep an eye on the priority of the filter. In this case I used 9 because the Salesforce plugin we used ran a presubmission filter at 10 so we needed this to happen before it | |
| */ | |
| add_filter( "gform_pre_submission_1", "add_salesforce_campaign_id_footer", 9 ); | |
| function add_salesforce_campaign_id_footer( $form ){ | |
| foreach($form["fields"] as &$field) | |
| if($field["id"] == 2){ | |
| /* Set the variable you want here - in some cases you might need a switch based on the page ID. | |
| * $page_id = get_the_ID(); |
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
| /* Media queries used on blog.staydecent.ca by Adrian Unger | |
| check my full source at: | |
| http://blog.staydecent.ca/static/css/style-0.1.6.css */ | |
| @media only screen and (min-width:768px) and (max-width:1269px) { | |
| /* In my particular design, I used a fluid grid limited to a | |
| max-width of 1140px, while (if there is enough room) | |
| pushing the menu outside of layout, requiring a total | |
| limit of at least 1270px. | |
| So, this first query applies to any screen-width less |