v8 의 Make
를 분석해 보자.
어떤 기술을 응용해 무언가를 만들고자 할 때, 필요한 것 중 하나는 그 기술이 어떻게 구성되어 있는지 확인하는 것. 각각의 구성품들을 살펴보며, 새로운 아이디어를 얻을 수 있다.(레고)
오픈소스의 구성품들은 Makefile
에 모두 기술되어 있다.
(function () { | |
if ( !window.jQuery ) { | |
var s = document.createElement('script'); | |
s.setAttribute('src', '//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js'); | |
document.body.appendChild(s); | |
console.log('jquery loaded!'); | |
} | |
if ( !window.jQuery.fn.chardinJs ) { |
(function() { | |
var scripts = document.getElementsByTagName('script'); | |
var table = []; | |
function Row(){ | |
this.name = ''; // inlined or name | |
this.src = ''; | |
this.async = false; | |
this.etc = ''; | |
} | |
function removeQuery(url) { |
(function(){ | |
// forked from "https://github.com/bgrins/devtools-snippets/blob/master/snippets/allcolors.js" | |
// FIXME: this result is only css match count. | |
function allcolors() { | |
var allColors = {}; | |
var props = ["background-color", "color", "border-top-color", "border-right-color", "border-bottom-color", "border-left-color"]; | |
var skipColors = { "rgb(0, 0, 0)": 1, "rgba(0, 0, 0, 0)": 1, "rgb(255, 255, 255)": 1 }; | |
[].forEach.call(document.querySelectorAll("*"), function (node) { |
# | |
# zaw-src-git-log | |
# | |
# zaw source for git log. | |
# https://gist.github.com/4350604 | |
# | |
# zaw : https://github.com/nakamuray/zaw | |
# | |
# git log pretty format: For detail, refer to "man git-log" |
AOSP(Android Open Source Project) 개발환경을 vagrant 를 활용해 좀 더 편하게 꾸려보자
vagrant
를 활용하면 다음과 같은 명령어 만으로도 AOSP 빌드환경을 갖춘 가상머신을 생성하고 빌드를 진행할 수 있습니다.
$ wget http://goo.gl/OnTHI4 -O Vagrantfile
$ vagrant up
<!-- add this after setting's key in base16-eighties.dark.tmTheme --> | |
<dict> | |
<key>name</key> | |
<string>Block Cursor</string> | |
<key>scope</key> | |
<string>block_cursor</string> | |
<key>settings</key> | |
<dict> | |
<key>foreground</key> | |
<string>#212121</string> |
class webserver{ | |
case $operatingsystem { | |
ubuntu: { | |
$apache = 'apache2' | |
$configfile = '/etc/apache2/sites-enabled/000-default' | |
} | |
} | |
package { 'apache': | |
name => $apache, |