As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
configdocs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public - Sep 07, 2020 update docs for
npm version
| ; A minimal Mach-o x64 executable for OS X (also see below Mountain Lion version) | |
| ; | |
| ; $ nasm -f bin -o tiny_hello tiny_hello.s | |
| ; $ chmod +x tiny_hello | |
| ; $ ./tiny_hello | |
| ; Hello World! | |
| ; $ | |
| ; c.f. | |
| ; http://osxbook.com/blog/2009/03/15/crafting-a-tiny-mach-o-executable/ ( the original tiny mach-o executable ) |
| license: gpl-3.0 | |
| redirect: https://observablehq.com/@d3/indented-tree |
| package leoliang.springtest; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import org.springframework.beans.BeansException; | |
| import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; | |
| import org.springframework.context.ApplicationContext; | |
| import org.springframework.context.ApplicationContextAware; | |
| import org.springframework.context.support.AbstractRefreshableApplicationContext; |
| > perl -E 'say "生" & "死"' | |
| 愛 | |
| 生 Life U+751F \xe7\x94\x9f 11100111 10010100 10011111 | |
| 死 Death U+6B7B \xe6\xad\xbb 11100110 10101101 10111011 | |
| 愛 Love u+611B \xe6\x84\x9b 11100110 10000100 10011011 |
(Full description and list of commands at - https://npmjs.org/doc/index.html)
Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
| license: gpl-3.0 | |
| redirect: https://observablehq.com/@d3/d3-collapsible-tree |
| <?php | |
| try { | |
| ob_start(); | |
| //warningが出るコード | |
| $file = file_get_contents('./not_found_file.txt'); | |
| $warning = ob_get_contents(); | |
| ob_end_clean(); | |
| //Warningがあれば例外を投げる | |
| if ($warning) { |
| // OOP | |
| console.log( 'OHAI'.blink() ); | |
| // Call invocation | |
| console.log( String.prototype.blink.call('OHAI') ); | |
| // $ always makes things look awesome. | |
| var $ = Function.prototype.call; | |
| // Very explicit call invocation |
Update 8/16/2015: I updated this guide a bit and posted it to Medium
A few notes about things I do when I travel to Japan.