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
var dialClock = function(rotate) { | |
var dial = document.getElementById('dial-clock'), | |
ctx = dial.getContext('2d'), | |
angle, | |
secHandLength = 360, | |
bigDegNum = (isInt(rotate) || isFloat(rotate))?rotate:3, | |
smallDegNum = (isInt(rotate) || isFloat(rotate))?rotate * 5:15; | |
ctx.clearRect(0, 0, dial.width, dial.height); |
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
var isInt = function(n) { | |
return n % 1 === 0; | |
}, | |
isFloat = function(n) { | |
return n === Number(n) && n % 1 !== 0; | |
}; | |
function isFunction(functionToCheck) { | |
var getType = {}; | |
return functionToCheck && getType.toString.call(functionToCheck) === '[object 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
self.addEventListener('message', function(e) { | |
self.postMessage(e.data); | |
}, false); |
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 | |
namespace League\OAuth2\Client\Provider; | |
use League\OAuth2\Client\Token\AccessToken; | |
class DropBox extends IdentityProvider | |
{ | |
public function urlAuthorize() |
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
$TTL 604800 | |
@ IN SOA one.example.com. admin.one.example.com. ( | |
3 ; Serial | |
604800 ; Refresh | |
2419200 ; Retry | |
604800 ) ; Negative Cache TTL | |
; name servers | |
IN NS ns1.one.example.com. | |
; PTR Records |
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
acl "trusted" { | |
# 127.0.0.1; | |
10.8.0/24; | |
# 10.8.1.0/24; | |
}; | |
options { | |
directory "/var/cache/bind"; | |
recursion yes; # enables resursive queries |
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
zone "one.example.com" { | |
type master; | |
file "/etc/bind/zones/db.one.example.com"; # zone file path | |
# allow-transfer { 10.128.20.12; }; # ns2 private IP address - secondary | |
}; | |
zone "8.10.in-addr.arpa" { | |
type master; | |
file "/etc/bind/zones/db.10.8"; # 10.8.0/24 subnet | |
# allow-transfer { 10.128.20.12; }; # ns2 private IP address - secondary |
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
$TTL 604800 | |
@ IN SOA ns1.one.example.com. admin.one.example.com. ( | |
3 ; Serial | |
604800 ; Refresh | |
86400 ; Retry | |
2419200 ; Expire | |
604800 ; Negative Cache TTL | |
) | |
; | |
; name servers - NS records |
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
; | |
; BIND data file for TLD ".jn" | |
; | |
$TTL 604800 | |
@ IN SOA jn. root.jn. ( | |
2 ; Serial | |
604800 ; Refresh | |
86400 ; Retry | |
2419200 ; Expire | |
604800 ) ; Negative Cache TTL |
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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |