A Pen by Jonathan Hudak on CodePen.
A variation on this wonderful article from Marcin Wichary at Medium: https://medium.com/p/7c03a9274f9
A Pen by Brent Jackson on CodePen.
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
$THEME_DIRECTORY = array( 'path' => get_bloginfo('template_url')); | |
$WP_DIRECTORY = array( 'path' => home_url()); | |
wp_localize_script( 'app', 'site', $WP_DIRECTORY ); | |
wp_localize_script( 'app', 'theme', $THEME_DIRECTORY ); | |
wp_localize_script( 'app', 'posts', $posts_w_meta) |
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
def getUserInfo(client, name) | |
friendTweets = client.user_timeline(name) | |
@tweets = Array.new | |
friendTweets.each do | tweet | | |
text = tweet.text if tweet.is_a?(Twitter::Tweet) | |
vowels = text.scan(/[aeiou]/).count | |
tweetInfo = {'text' => text, 'vowels' => vowels} | |
@tweets.push(tweetInfo) |
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
arrayOfHashes = [{'count' => 5}, {'count' => 3}, {'count' => 8}]; | |
puts arrayOfHashes.sort_by { |hash| hash[:count]} |
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
<header id="topBar"> | |
<a href="#menu" class="toggleMenu">☰</a> | |
</header> | |
<nav id="menu"> | |
<a href="#">one</a> | |
<a href="#">two</a> | |
<a href="#">three</a> | |
<a href="#">four</a> | |
<a href="#">five</a> |
Try the hover effect!
Forked from Mircea Georgescu's Pen CSS only spinning cubes.
A Pen by Jonathan Hudak on CodePen.
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
#scene |
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
Q = require 'q' | |
_ = require 'lodash' | |
delay = (ms) -> | |
deferred = Q.defer() | |
setTimeout deferred.resolve, ms | |
return deferred.promise | |
App = | |
nums: [] |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<script src="jquery.ketchup.all.min.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<div id="email"> | |
<span>Enter your email to sign up</span> | |
<form action="/subscribe.php" id="invite" method="POST"> |
OlderNewer