This list served quite some people but someone else did a better job since.
Go to https://github.com/umpirsky/country-list for a list in your language and format.
I've also compiled a list of nationalities
<?php | |
class IndexController extends Zend_Controller_Action | |
{ | |
public function exportXlsAction() | |
{ | |
set_time_limit( 0 ); | |
$model = new Default_Model_SomeModel(); | |
$data = $model->getData(); |
This list served quite some people but someone else did a better job since.
Go to https://github.com/umpirsky/country-list for a list in your language and format.
I've also compiled a list of nationalities
<?php | |
class Website_Model_Product extends Object_Concrete | |
{ | |
/** | |
* Retreive the values in an array | |
* | |
* @return array | |
*/ | |
public function toArray() |
# Create a new repository on the command line | |
touch README.md | |
git init | |
git add README.md | |
git commit -m "first commit" | |
git remote add origin https://github.com/c0ldlimit/vimcolors.git | |
git push -u origin master | |
# Push an existing repository from the command line |
<?php | |
$blog_uri = 'blog'; | |
$articles = $pages->find( $blog_uri )->children()->visible()->sortBy( $sort='date', $dir='desc' ); | |
$year = date( 'Y' ); | |
?> | |
<ul> | |
<?php | |
// loop through blog articles |
<? | |
function rgbToHsl( $r, $g, $b ) { | |
$oldR = $r; | |
$oldG = $g; | |
$oldB = $b; | |
$r /= 255; | |
$g /= 255; | |
$b /= 255; |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
// See https://stackoverflow.com/questions/133925/javascript-post-request-like-a-form-submit, jQuery version with arrays and objects support | |
function post(path, parameters) { | |
var form = $('<form></form>'); | |
form.attr("method", "post"); | |
form.attr("action", path); | |
$.each(parameters, function(key, value) { | |
if ( typeof value == 'object' || typeof value == 'array' ){ | |
$.each(value, function(subkey, subvalue) { |
Examples shown are bare minimum needed to achieve a simple goal.
c-c-c-c-c-ULTIMATE c-c-c-COMBO!!!
function nextBigger(n){ | |
var d = n.toString().split(''); | |
// find the pivot, the point (from right) where i > i-1 | |
var p = -1; | |
for (var i = d.length-1; i > 0; i--) { | |
if (+d[i] > +d[i-1]) { | |
p = i-1; | |
break; | |
} |