I hereby claim:
- I am gvinter on github.
- I am gvinter (https://keybase.io/gvinter) on keybase.
- I have a public key ASC8QolshHWOHCinVPsTZ12-A9Q7IvexiGRuuJapE-RXjQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Wrangling a style guide together for Bootstrap 3
Forked from Joe Watkins's Pen Bootstrap 3 Style Guide.
A Pen by Captain Anonymous on CodePen.
| <style type="text/css" media="screen"> | |
| .bar1 { | |
| -moz-transform:rotate(0deg) translate(0, -40px); | |
| -webkit-transform:rotate(0deg) translate(0, -40px);opacity:0.12; | |
| } | |
| .bar2 { | |
| -moz-transform:rotate(45deg) translate(0, -40px); | |
| -webkit-transform:rotate(45deg) translate(0, -40px);opacity:0.25; | |
| } | |
| .bar3 { |
| <?php | |
| $args = array( 'numberposts' => 3 ); | |
| $posts = get_posts( $args ); | |
| ?> | |
| <ul> | |
| <?php foreach( $posts as $post ) : setup_postdata($post); ?> | |
| <li class="grid_4 alpha omega"> | |
| <a href="<?php the_permalink(); ?>"> | |
| <?php if ( has_post_thumbnail('<thumnail-name>') ): ?> | |
| <?php the_post_thumbnail('<thumnail-name>'); ?> |
| function max(a, b) { | |
| this.a = a; | |
| this.b = b; | |
| if (a > b) { | |
| return a; | |
| } else { | |
| return b; | |
| } | |
| } |
| function simple_hash(key,table_size) { | |
| var hash = 0; | |
| for (var i = 0; i < key.length; i++) { | |
| hash = (hash * 31) + key.charCodeAt(i); | |
| } | |
| return Math.abs(hash) % table_size; | |
| } |
| _= require("/Users/gvinter/WebDev/cloud-application-engineer-1/lectures/week05/javascript/underscore.js") | |
| // Exercise: use head and tail in javascript to implement a recursive function over a list of elements | |
| //console.log(_.first([1,2,3])); | |
| function last(an_array){ |
| function make_listnode(prev_list, x, next_list) { | |
| var node = new Object(); | |
| node["prev"] = prev_list; | |
| node["value"] = x; | |
| node["next"] = next_list; | |
| return node; | |
| } | |
| var alist = make_listnode (blist, 1, null) |