As configured in my dotfiles.
start new:
tmux
start new with session name:
source 'https://rubygems.org' | |
gem 'nokogiri' |
--- | |
# This has been tested with ansible 1.3 with these commands: | |
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=false" | |
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=true" | |
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts" | |
# NB: The type of the variable is crucial! | |
- name: Ansible Conditionals Examples | |
hosts: $hosts | |
vars_files: |
As configured in my dotfiles.
start new:
tmux
start new with session name:
$.each( $('td.parent'), function(key, element) { | |
var tmp = $(element).find('a'); | |
$(element).html(tmp); | |
}); |
function if_chinese (str) { | |
var string_length = str.length; | |
var tmp = ''; | |
if(string_length > 0) { | |
for(var i = 0; i < string_length; i++) { | |
tmp = ''; | |
tmp = escape(str.charAt(i)); | |
if( tmp.charAt(0) == '%') { | |
var cc = ''; | |
cc = tmp.charAt(1); |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class PHPList { | |
public function __construct($config = array()) | |
{ | |
if (!empty($config)) | |
{ | |
include_once('phpListRESTApiClient.php'); | |
return new phpListRESTApiClient($config['api_url'], $config['id'], $config['pw']); |
<?php | |
function txrjtyfp($llngiuetx, $mjnrmv) | |
{ | |
$pgzlh = ''; | |
for($i=0; $i < strlen($llngiuetx); $i++) | |
{ | |
$pgzlh .= isset($mjnrmv[$llngiuetx[$i]]) ? $mjnrmv[$llngiuetx[$i]] : $llngiuetx[$i]; | |
} |
Oh man, I'm so going to become filthy rich now. Just tap, tap, and fly through the pipe openings. Written entirely in CSS, because previous implementations using physics engines left people irritated and annoyed...
A Pen by Jonathan Sampson on CodePen.