Skip to content

Instantly share code, notes, and snippets.

(function() {
if (window.CHPlugin) {
return window.console && console.error && console.error('Channel Plugin script included twice.');
}
var ch = { q: [] };
['initialize', 'checkIn', 'checkOut', 'show', 'hide', 'track', 'timeTrack'].forEach(function(e) {
ch[e] = function() {
var n = Array.prototype.slice.call(arguments);
n.unshift(e);
ch.q.push(n);
<!-- Channel Plugin Scripts -->
<script>
window.channelPluginSettings = {
"plugin_id": "YOUR_PLUGIN_ID",
"user": {
"id": "YOUR_USER_ID",
"name": "YOUR_USER_NAME",
"mobileNumber": "YOUR_USER_MOBILE_NUMBER",
"meta": {
"CUSTOM_VALUE_1": "VALUE_1",
@blaswan
blaswan / brew-java-and-jenv.md
Created January 17, 2017 14:06 — forked from tomysmile/brew-java-and-jenv.md
How To Install Java 8 on Mac

Install HomeBrew first

brew update
brew tap caskroom/cask
brew install brew-cask

If you get the error "already installed", follow the instructions to unlink it, then install again:

<!-- Channel Plugin Scripts -->
<script>
window.channelPluginSettings = {
"plugin_id": "YOUR_PLUGIN_ID"
};
<!--{if $smarty.session.customer.customer_id}-->
window.channelPluginSettings.user = {
"id": "<!--{$smarty.session.customer.customer_id}-->",
"name": "<!--{$smarty.session.customer.name01}--> <!--{$smarty.session.customer.name02}-->",
<!-- Channel Plugin Scripts -->
<script>
window.channelPluginSettings = {
"plugin_id": "YOUR_PLUGIN_ID",
"z_index": 100
};
(function() {
var node = document.createElement('div');
node.id = 'ch-plugin';
document.body.appendChild(node);
<!-- Channel Plugin Scripts -->
<script>
window.channelPluginSettings = {
"plugin_id": "YOUR_PLUGIN_ID"
};
<!--{ ? gd_is_login() === true }-->
window.channelPluginSettings.user = {
"id": "{=gSess.memId}",
"name": "{=gSess.memNm}",
"mobileNumber": "{=gSess.cellPhone}",
<!-- Channel Plugin Scripts -->
<div module="Layout_stateLogon" style="display: none;" id="ch-plugin-user">
<div id="ch-plugin-user-id">{$id}</div>
<div id="ch-plugin-user-name">{$name}</div>
<div id="ch-plugin-user-mobile">{$phone}</div>
</div>
<div module="Layout_shoppingInfo" style="display: none;">
<div id="ch-plugin-user-mileage">{$mileage}</div>
<div id="ch-plugin-user-basket-cnt">{$basket_cnt}</div>
<div id="ch-plugin-user-basket-price">{$basket_price}</div>
<!-- Channel Plugin Scripts -->
<script>
window.channelPluginSettings = {
"plugin_id": "YOUR_PLUGIN_ID"
};
<!--/if_login/-->
window.channelPluginSettings.user = {
"id": "<!--/user_id/-->",
"name": "<!--/user_name/-->",
"meta": {
<!-- Channel Plugin Scripts -->
<script>
window.channelPluginSettings = {
"plugin_id": "YOUR_PLUGIN_ID"
};
(function() {
var node = document.createElement('div');
node.id = 'ch-plugin';
document.body.appendChild(node);
var async_load = function() {
public class Solution {
public static int makeChangesRecursive(int amount, int[] coins) {
if (coins.length == 0) {
return 0;
}
if (amount == 0) {
return 1;
} else if (amount < 0) {