It's time someone compiled a list of nationalities to use within a web application. This gist attempts to make a first move at that.
##List of countries
I've also compiled a list of countries
/* include jQuery */ | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script> | |
<script src="http://cdn.jquerytools.org/1.2.5/jquery.tools.min.js"></script> | |
<script src="http://code.jquery.com/jquery-latest.min.js"></script> | |
/*--------------------------------*/ | |
jQuery(document).ready(function($){ | |
$('').addClass(""); | |
}); | |
/*--------------------------------*/ | |
$(document).ready(function(){ |
/* ====================================== | |
CSS3 Media Query Reporter | |
v. 1.0.1 | |
by David Cochran - aLittleCode.com | |
========================================= */ | |
body:after { | |
content: "less than 320px"; |
<link href="http://fonts.googleapis.com/css?family=Anonymous+Pro:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css" > | |
<style> | |
.helv {font:14px 'Anonymous Pro', serif;} | |
</style> | |
<p class="helv">I'm almost cool like helvetica.</p> | |
<p>I'am normal Arial shit.</p> | |
<a href="http://www.webdesignshock.com/helvetica-free-download" target=_blank>http://www.webdesignshock.com/helvetica-free-download</a> - tady doporučují, které fonty použít, které vypadají nejvíce Helvetica-like. Myslm, že tenhle je v cajku, ale klidně čekni další. |
It's time someone compiled a list of nationalities to use within a web application. This gist attempts to make a first move at that.
##List of countries
I've also compiled a list of countries
<?php | |
$arr = array('key' => 'value', 'key' => $value); | |
$arr2 = array(array('key' => 'value', 'key'),array('key' => 'value', 'key' => ''),array('key' => 'value', 'key')); | |
$arr3 = array('key' => array('one' => 'two', 'three' => 'four'), array('foo' => 'bar', 'condition' => false)); | |
$arr4 = array(); | |
$arr4[] = 'key' => 'value', 'foo' => 'bar'; |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
<?php | |
wp_enqueue_script('jquery'); /*in header.php before wp_head();*/ | |
/*--------------------------------*/ | |
/* for wp */ | |
wp_deregister_script('jquery'); | |
wp_register_script('jquery',("http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"),false,'1.6.2'); | |
wp_enqueue_script('jquery'); | |
/*--------------------------------*/ | |
bloginfo('template_directory'); | |
/*--------------------------------*/ |
<?php | |
// get all options in array from OPTIONS table | |
get_alloptions(); | |
// cache database query, so you don't have to query database again | |
$activity_object = wp_cache_get($id,'activity'); | |
if(false === $activity_object){ | |
$activity_object = $wpdb->get_row( | |
$wpdb->prepare("SELECT*FROM | |
$wpdb->activity WHERE ID = %d",$id)); |
<?php | |
global $user_ID, $user_identity, $user_level; | |
if ($user_ID) { | |
if($_POST) | |
{ | |