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
// Animation: Timer | |
// ------------------------------- | |
// Sized for iPhone 6 .timer correct position should be set with JS | |
$timer-screen-width: 375px; // top: ($timer-screen-height - $timer-size) / 2; | |
$timer-screen-height: 667px;// left: ($timer-screen-width - $timer-size) / 2; | |
$timer-size: 800px; | |
$timer-opacity: .5; | |
$timer-countdown-opacity: .9; |
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 | |
add_action( 'init', 'handle_preflight' ); | |
function handle_preflight() { | |
header("Access-Control-Allow-Origin: " . get_http_origin()); | |
header("Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE"); | |
header("Access-Control-Allow-Credentials: true"); | |
header("Access-Control-Allow-Headers: Authorization, Origin, X-Requested-With, Content-Type, Accept"); | |
if ( 'OPTIONS' == $_SERVER['REQUEST_METHOD'] ) { | |
status_header(200); | |
exit(); |
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
// https://github.com/BrowserSync/browser-sync/issues/141 | |
browserSync({ | |
notify: { | |
styles: [ | |
'display: none; ', | |
'padding: 6px 15px 3px;', | |
'position: fixed;', | |
'font-size: 0.8em;', | |
'z-index: 9999;', | |
'left: 0px;', |
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
// https://css-tricks.com/snippets/css/a-guide-to-flexbox/ | |
.parent { | |
display: flex; /* or inline-flex */ | |
flex-direction: row | row-reverse | column | column-reverse; | |
flex-wrap: nowrap | wrap | wrap-reverse; | |
flex-flow: <‘flex-direction’> || <‘flex-wrap’> | |
justify-content: flex-start | flex-end | center | space-between | space-around; | |
align-items: flex-start | flex-end | center | baseline | stretch; | |
align-content: flex-start | flex-end | center | space-between | space-around | stretch; |
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 | |
/** | |
* Update variable settings. | |
* Load to your WP root folder. | |
*/ | |
// Set $to as the email you want to send the test to | |
$to = ""; | |
// No need to make changes below this line |
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
var gulp = require('gulp'); | |
var browserSync = require('browser-sync'); | |
var sass = require('gulp-sass'); | |
var prefix = require('gulp-autoprefixer'); | |
var cp = require('child_process'); | |
var messages = { | |
jekyllBuild: '<span style="color: grey">Running:</span> $ jekyll build' | |
}; |
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
//http://askubuntu.com/questions/19898/whats-the-simplest-way-to-edit-and-add-files-to-var-www | |
sudo adduser <username> www-data | |
sudo chown -R www-data:www-data /var/www | |
sudo chmod -R g+rwX /var/www |
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 | |
# | |
# StackScript Bash Library | |
# https://www.linode.com/stackscripts/view/1 | |
# | |
# Copyright (c) 2010 Linode LLC / Christopher S. Aker <[email protected]> | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without modification, | |
# are permitted provided that the following conditions are met: |
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
Show hidden characters
{ | |
"boss": true, | |
"browser": true, | |
"curly": true, | |
"eqeqeq": true, | |
"eqnull": true, | |
"immed": true, | |
"latedef": true, | |
"newcap": true, | |
"noarg": true, |
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 | |
defaults write com.apple.finder AppleShowAllFiles YES | |
## Xcode Tools | |
xcode-select --install | |
## [Setup oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh) | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" |