Das Verhalten von if statements ist in CoffeeScript das selbe wie in Javascript. Ich habe dafür einen kleinen Test geschrieben.
Sollte man allerdings
if true == 1
schreiben, dann macht CoffeeScript daraus ein
if true === 1
git checkout master~1 # Checkout previous commit on master | |
git checkout -b new_master # Create branch for new master | |
git branch -D master # Delete old master | |
git branch -mv new_master master # Make new_master master | |
# source: http://stackoverflow.com/questions/4359681/want-to-change-my-master-to-an-older-commit-how-can-i-do-this |
<a href="tel:<?php echo preg_replace('/[\s\-\/]/', '', $tel); ?>"><?php echo $tel; ?></a> |
git submodule update --init --recursive |
<?php | |
$form = new contactform(array( | |
'to' => 'Daniel Weidner <[email protected]>', | |
'from' => 'Contact Form <[email protected]>', | |
'subject' => 'Neue Nachricht', | |
'goto' => null, | |
'honeypot' => 'email-repeat-142' | |
)); |
............................................________ | |
....................................,.-'"...................``~., | |
.............................,.-"..................................."-., | |
.........................,/...............................................":, | |
.....................,?......................................................, | |
.................../...........................................................,} | |
................./......................................................,:`^`..} | |
.............../...................................................,:"........./ | |
..............?.....__.........................................:`.........../ | |
............./__.(....."~-,_..............................,:`........../ |
Das Verhalten von if statements ist in CoffeeScript das selbe wie in Javascript. Ich habe dafür einen kleinen Test geschrieben.
Sollte man allerdings
if true == 1
schreiben, dann macht CoffeeScript daraus ein
if true === 1
<input maxlength="5" type="text" name="nix" placeholder="Schreib..." value=""> |
array = [ | |
{ | |
position: 'first' | |
mood: 'meh...' | |
} | |
{ | |
position: 'second' | |
mood: 'Yuck!' | |
} | |
{ |
#! /usr/bin/env node | |
var file = require(process.cwd()+'/package.json'); | |
var pkg = JSON.parse(JSON.stringify(file)); | |
var spawn = require('child_process').spawn; | |
if ( pkg.bugs.url ) { | |
spawn('open', [pkg.bugs.url]); | |
} else { | |
console.error("--------------------------------------"); |
git log --pretty --graph --name-status --oneline |