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
for (var i=1; i <= 20; i++) | |
{ | |
if (i % 15 == 0) | |
console.log("FizzBuzz"); | |
else if (i % 3 == 0) | |
console.log("Fizz"); | |
else if (i % 5 == 0) | |
console.log("Buzz"); | |
else | |
console.log(i); |
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 | |
# This script is used to check and update your GoDaddy DNS server to the IP address of your current internet connection. | |
# Special thanks to mfox for his ps script | |
# https://github.com/markafox/GoDaddy_Powershell_DDNS | |
# | |
# First go to GoDaddy developer site to create a developer account and get your key and secret | |
# | |
# https://developer.godaddy.com/getstarted | |
# Be aware that there are 2 types of key and secret - one for the test server and one for the production server |
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 | |
/**8 MATTERMOST INCOMING WEBHOOK 8**/ | |
/* */ | |
/* NOTE: Use either standalone with URL parameters or include */ | |
/* in a PHP script to naturally call the send_msg_mmst(). */ | |
/* Returns true if the call is succesful, or whatever the */ | |
/* error. */ | |
/* Includes defaults for most parameters to simplify usage. */ | |
/* */ |
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
self.cbTog = function(b) { | |
var self = this; | |
var gs = $(b).parent('label').siblings().length; | |
// console.log($(b).parent('label').siblings().length); | |
if (gs > 0) { | |
// This is a multi option item, mostlikely a radio. | |
$(b) | |
.siblings('i') |
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
ko.bindingHandlers.chosen = { | |
init: function(element, valueAccessor, allBindings, viewModel, bindingContext){ | |
var $element = $(element); | |
var options = ko.unwrap(valueAccessor()); | |
if (typeof options === 'object') | |
$element.chosen(options); | |
else | |
$element.chosen(); | |
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
.chosen-container-single .chosen-single { | |
height: 34px; | |
border-radius: 4px; | |
border: 1px solid #CCCCCC; | |
} | |
.chosen-container-single .chosen-single span { | |
padding-top: 4px; | |
} | |
.chosen-container-single .chosen-single div b { | |
margin-top: 4px; |
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
Code | |
$("button").single_double_click(function () { | |
alert("Try double-clicking me!") | |
}, function () { | |
alert("Double click detected, I'm hiding") | |
$(this).hide() | |
}) | |
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
stages: | |
- test | |
- build | |
- user-test | |
- deploy | |
test: | |
stage: test | |
before_script: | |
# Find the SSH Agent |
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 | |
''' | |
Send an multipart email with HTML and plain text alternatives. The message | |
should be constructed as a plain-text file of the following format: | |
From: Your Name <your@email.com> | |
To: Recipient One <recipient@to.com> | |
Subject: Your subject line | |
--- |
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
.ui-datepicker { | |
background-color: #fff; | |
border: 1px solid #66AFE9; | |
border-radius: 4px; | |
box-shadow: 0 0 8px rgba(102,175,233,.6); | |
display: none; | |
margin-top: 4px; | |
padding: 10px; | |
width: 240px; | |
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; |
OlderNewer