Skip to content

Instantly share code, notes, and snippets.

View chrisle's full-sized avatar
💭
probably partying...

Chris Le (TRIODE) chrisle

💭
probably partying...
View GitHub Profile
@chrisle
chrisle / gist:2252209
Created March 30, 2012 15:15
CURL as GoogleBot 2.1
curl --user-agent "Googlebot/2.1 (+http://www.google.com/bot.html)" -v $@
@chrisle
chrisle / simple_google_analytics.rb
Last active February 16, 2023 07:30
My simple Google Analytics API export API. Exports GA data as an array of flattened hashes with a SHA1 signature. No DSL, no sugar.
require 'digest'
# = simple_google_analytics.rb
#
# Chris Le <chris at iamchrisle dot com>
#
# This module is an wrapper to export data from Google Analytics as a flattened
# hash suitable for database storage. It does not require any other gems other
# than 'oauth'. I used this simply to get metrics and directly store them in
# a database.
@chrisle
chrisle / groovy-text-fade-in-script.markdown
Created January 12, 2022 08:27
Groovy text fade in script
@chrisle
chrisle / groovy-text-fade-in-script.markdown
Created January 12, 2022 08:26
Groovy text fade in script
@chrisle
chrisle / index.html
Created January 12, 2022 08:24
Rotating text
<div class="text">
<p>Nachos are</p>
<p>
<span class="word wisteria">tasty.</span>
<span class="word belize">wonderful.</span>
<span class="word pomegranate">fancy.</span>
<span class="word green">beautiful.</span>
<span class="word midnight">cheap.</span>
</p>
</div>
@chrisle
chrisle / index.html
Created January 12, 2022 08:20
Title Text Animation
<section class="container">
<h1>
<span class="title">This is</span>
<span class="title">a long</span>
<span class="title">long title</span>
</h1>
<div class="button">restart</div>
</section>
@chrisle
chrisle / index.pug
Created January 9, 2022 02:38
Scrambled letters
#textContainer
@chrisle
chrisle / bouncy-type-animation.markdown
Created January 9, 2022 02:36
Bouncy type animation
@chrisle
chrisle / bouncy-type-animation.markdown
Created January 9, 2022 02:35
Bouncy type animation
@chrisle
chrisle / scrollwaypoints.html
Last active May 28, 2021 06:51
Scrolling + jQuery Waypoints
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
<!-- Download from here: http://imakewebthings.com/jquery-waypoints/ -->
<script src="https://raw.githubusercontent.com/imakewebthings/jquery-waypoints/master/waypoints.js"></script>
<style type="text/css">
/* A box that is 500px tall */
.content {
height: 500px;