Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| <div id="wrapper"> | |
| Stuff goes here. | |
| <div id="footer_push"></div> | |
| </div> | |
| <footer> | |
| <p>This is my footer</p> | |
| </footer> |
| <div class="container"> | |
| <div class="wrap"> | |
| <div class="circle horizontal c1"> | |
| <div class="wrap-electron"> | |
| <div class="circle electron"></div> | |
| </div> | |
| </div> | |
| <div class="circle vertical c1"> | |
| <div class="wrap-electron"> | |
| <div class="circle electron"></div> |
| @main-font-size: 16px; | |
| .x-rem (@property, @value) { | |
| // This is a workaround, inspired by https://github.com/borodean/less-properties | |
| @px-fallback: @value * @main-font-size; | |
| -: ~`(function () { return ';@{property}: @{px-fallback}'; }())`; | |
| -: ~`(function () { return ';@{property}: @{value}rem'; }())`; | |
| } |
| register_taxonomy('type', 'work', array( | |
| 'labels' => array( | |
| 'name' => 'Types' | |
| , 'singular_name' => 'Type' | |
| , 'search_items' => 'Search Types' | |
| , 'edit_item' => 'Edit Type' | |
| , 'add_new_item' => 'Add New Type' | |
| ) | |
| , 'hierarchical' => true | |
| , 'query_var' => true |
| # put this in your .bash_profile | |
| if [ $ITERM_SESSION_ID ]; then | |
| export PROMPT_COMMAND='echo -ne "\033];${PWD##*/}\007"; ':"$PROMPT_COMMAND"; | |
| fi | |
| # Piece-by-Piece Explanation: | |
| # the if condition makes sure we only screw with $PROMPT_COMMAND if we're in an iTerm environment | |
| # iTerm happens to give each session a unique $ITERM_SESSION_ID we can use, $ITERM_PROFILE is an option too | |
| # the $PROMPT_COMMAND environment variable is executed every time a command is run | |
| # see: ss64.com/bash/syntax-prompt.html |
| function validBrackets (brackets) { | |
| var counts = { | |
| '(': 0, | |
| '[': 0, | |
| '{': 0 | |
| }, | |
| pairs = { | |
| ')': '(', |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| <?php | |
| // rewrite the tribe event featured image on single event view templates with a custom size | |
| function custom_tribe_event_featured_image( $featured_image ){ | |
| if( is_single() ){ | |
| $post_id = get_the_ID(); | |
| $size = 'hbgm-news-full'; | |
| $image_src = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), $size ); | |
| $featured_image = ''; | |
| if ( !empty( $image_src ) ) { |
| require 'rubygems' | |
| require 'mechanize' | |
| FIRST_NAME = 'FIRST_NAME' | |
| LAST_NAME = 'LAST_NAME' | |
| PHONE = 'PHONE' | |
| EMAIL = 'EMAIL@provider.com' | |
| PARTY_SIZE = 2 | |
| SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' } |
| select.form-control + .chosen-container.chosen-container-single .chosen-single { | |
| display: block; | |
| width: 100%; | |
| height: 34px; | |
| padding: 6px 12px; | |
| font-size: 14px; | |
| line-height: 1.428571429; | |
| color: #555; | |
| vertical-align: middle; | |
| background-color: #fff; |