- jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
- Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
- AngularJS - Conventions based MVC framework for HTML5 apps.
- Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
- lawnchair - Key/value store adapter for indexdb, localStorage
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
<html > | |
<head> | |
<title>Test</title> | |
<meta http-equiv="X-UA-Compatible" content="IE=8" /> | |
<style type="text/css"> | |
.wrapper1 { | |
white-space:nowrap; | |
max-width:50%; | |
} | |
.wrapper2 { |
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
<!-- containing element to implement centering trick on --> | |
<div class="wrapper"> | |
<!-- element to center --> | |
<div class="container"> | |
<h1>Hello World</h1> | |
<p>Hi, I am page content.</p> | |
</div> | |
</div> |
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
traceroute to cloudflare.com (198.41.213.157), 64 hops max, 52 byte packets | |
1 192.168.1.1 (192.168.1.1) 1.450 ms 0.973 ms 0.819 ms | |
2 10.121.84.233 (10.121.84.233) 21.801 ms | |
10.121.84.221 (10.121.84.221) 48.601 ms 74.984 ms | |
3 10.121.84.234 (10.121.84.234) 22.461 ms 21.761 ms 21.574 ms | |
4 mx-ll-110.164.0-161.static.3bb.co.th (110.164.0.161) 29.383 ms | |
mx-ll-110.164.0-163.static.3bb.co.th (110.164.0.163) 29.714 ms | |
mx-ll-110.164.0-169.static.3bb.co.th (110.164.0.169) 30.000 ms | |
5 mx-ll-110.164.0-158.static.3bb.co.th (110.164.0.158) 29.585 ms | |
mx-ll-110.164.0-162.static.3bb.co.th (110.164.0.162) 30.390 ms 29.433 ms |
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
<?php | |
function change_ppp() { | |
if((is_tax('catalog_cat') || is_tax('idea_categories')) && !is_admin() ) { | |
set_query_var( 'posts_per_page', '-1' ); | |
} | |
return; | |
} | |
add_action( 'parse_query', 'change_ppp' ); | |
// If you don't understand how is it works, it's fine! |
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
[64] => stdClass Object | |
( | |
[term_id] => 64 | |
[name] => осень | |
[slug] => osen | |
[term_group] => 0 | |
[term_taxonomy_id] => 65 | |
[taxonomy] => idea_seasons | |
[description] => | |
[parent] => 0 |
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
add_filter( 'template_include', 'var_template_include', 1000 ); | |
function var_template_include( $t ){ | |
$GLOBALS['current_theme_template'] = basename($t); | |
return $t; | |
} | |
function get_current_template( $echo = false ) { | |
if( !isset( $GLOBALS['current_theme_template'] ) ) | |
return false; | |
if( $echo ) |
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
.element { | |
position: relative; | |
top: 50%; | |
transform: translateY(-50%); | |
} |
- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
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
var n = 123456; | |
n.toLocaleString; | |
// 123,456 |
OlderNewer