Skip to content

Instantly share code, notes, and snippets.

View harberg's full-sized avatar

Nicholas Harberg harberg

View GitHub Profile
@function starShadow($n) {
$val : random(2000) + px random(2000) + px #FFF;
@for $i from 2 through $n {
$val : $val, random(2000) + px random(2000) + px #FFF;
}
@return $val;
}
// number of stars to create
$starShadows : starShadow(100);
@harberg
harberg / header.php
Last active December 6, 2016 22:27
Full screen overlay
<header>
<div class="innerContainer">
<h1><?php the_title(); ?></h1>
<a class="headerLogo" href="<?php bloginfo( 'url' ); ?>">
<img src="<?php bloginfo( 'stylesheet_directory' ); ?>/images/logo.png" />
</a>
<a class="headerSearchIcon fa fa-search" href="#"></a>
<php wp_nav_menu( array(
'theme_location' => 'primary',
'container' => 'nav',
var zigzag = [4, 23, -5, -9, -19, -89];
// should look like [23, -89, 4, -19, -9, -5];
function arrSplit(arr) {
var negArr = [], posArr = [];
for (var i = 0; i < arr.length; i++) {
if(arr[i] > 0) {
posArr.push(arr[i]);
} else {