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 CommonsPlugin = new require("webpack/lib/optimize/CommonsChunkPlugin"); | |
var webpack = new require("webpack"); | |
module.exports = { | |
entry: { | |
home: "./scripts/home.js", | |
apis: "./scripts/api.js", | |
app: "./scripts/app.js", | |
vendor: "./scripts/vendor.js" | |
}, |
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 | |
//Simple Ajax Login Form | |
//Source: http://natko.com/wordpress-ajax-login-without-a-plugin-the-right-way/ | |
//html | |
<form id="login" action="login" method="post"> | |
<h1>Site Login</h1> | |
<p class="status"></p> | |
<label for="username">Username</label> | |
<input id="username" type="text" name="username"> |
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
/* Reset rem to 10-based instead of default browser 16 */ | |
html { | |
font-size: 62.5%; | |
} | |
/* | |
Photoshop does not apply line height to the first row, which CSS does. This creates all kinds of havock. | |
To calculate the correct offset for the first line we need the font-size and the lineheight, i.e: | |
@include line-height(22,30); |
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
// Released under the MIT license | |
// created by: Frank Zondlo | |
// Quick and dirty jquery script to split ULs into multiple columns | |
(function($){ | |
jQuery.fn.cols = function(num_columns, li_class) { | |
//Break up the array into managable chunks | |
function chunk (arr, number_of_chunks) { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
<title>Google Maps JavaScript API v3 Example: Geocoding Simple</title> | |
<link href="https://developers.google.com/maps/documentation/javascript/examples/default.css" rel="stylesheet"> | |
<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script> | |
<script> |
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
/* | |
* By Shajed Evan @evanshajed | |
* Concept by: CHRIS COYIER @chriscoyier | |
// Breakpoints | |
@mixin breakpoint($point) { | |
/* Smartphones (portrait and landscape) ----------- */ | |
@if $point == sp-portrait-lanscape { | |
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) { @content; } |
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
/* | |
* dependencies: connect-livereload, express, gulp, gulp-autoprefixer, gulp-minify-css, gulp-notify, gulp-ruby-sass, tiny-lr | |
* Files structure: | |
* / | |
- /css | |
- main.css | |
- /node_modules | |
- /sass | |
- main.scss | |
gulpfile.js |