v8 의 Make
를 분석해 보자.
어떤 기술을 응용해 무언가를 만들고자 할 때, 필요한 것 중 하나는 그 기술이 어떻게 구성되어 있는지 확인하는 것. 각각의 구성품들을 살펴보며, 새로운 아이디어를 얻을 수 있다.(레고)
오픈소스의 구성품들은 Makefile
에 모두 기술되어 있다.
-(UIImage*)mmg_imageScaledToFitSize:(CGSize)fitSize | |
{ | |
// Create a vImage_Buffer from the CGImage | |
CGImageRef sourceRef = self.CGImage; | |
vImage_Buffer srcBuffer; | |
vImage_CGImageFormat format = { | |
.bitsPerComponent = 8, | |
.bitsPerPixel = 32, | |
.colorSpace = NULL, | |
.bitmapInfo = (CGBitmapInfo)kCGImageAlphaFirst, |
// Copyright © 2015 Indragie Karunaratne. All rights reserved. | |
import Foundation | |
import Accelerate | |
public class Image { | |
private var buffer: vImage_Buffer | |
public var size: CGSize { | |
return vImageBuffer_GetSize(&buffer) |
// | |
// PixelBufferUtils.h | |
// IRStudio | |
// | |
// Created by Brian Cook on 5/30/12. | |
// Copyright (c) 2012 All rights reserved. | |
// | |
#import <Accelerate/Accelerate.h> | |
#import "BCNeonImageUtils.h" |
#!/bin/bash | |
: << '#__REM__' | |
指定さたライブラリをiOS用にフルオートで作成します。ダウンロード、複数のアーキテクチャのビルドも自動的に行います。デフォルトではi386、x86_64、armv7、armv7s、arm64のアーキテクチャを作成します。 | |
Create a full-auto to iOS for the library specified. I do also builds the architecture download, more than one. Create architecture i386, x86_64, armv7, armv7s, arm64 by default. | |
#__REM__ | |
TARGET_VERSION="1.3.1" |
diff --git a/contrib/bootstrap b/contrib/bootstrap | |
index df3dd85..a0a7244 100755 | |
--- a/contrib/bootstrap | |
+++ b/contrib/bootstrap | |
@@ -143,15 +143,19 @@ add_make_enabled() | |
check_macosx_sdk() | |
{ | |
- [ -z "${OSX_VERSION}" ] && echo "OSX_VERSION not specified, assuming 10.5" && OSX_VERSION=10.5 | |
- SDK="/Developer/SDKs/MacOSX${OSX_VERSION}.sdk" |
############################################################# | |
# # | |
# Generic Makefile for C++ projects # | |
# Author: Gabriel <[email protected]> # | |
# Date: 2014-04-18 # | |
# Version: 1.0 # | |
# # | |
############################################################# | |
#!/bin/bash | |
#### This script is published by Philipp Klaus <[email protected]> | |
#### on <http://blog.philippklaus.de/2011/05/ipv6-6in4-tunnel-via-hurricane-electric-tunnelbroker-net-automatic-ip-update-on-mac-os-x/> | |
#### It is originally by freese60 and modified by limemonkey. | |
#### Found on <http://www.tunnelbroker.net/forums/index.php?topic=287.0> | |
### Uncomment this line to debug the script: | |
#set -x |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
var Article = require('../../../models/article');
Those suck for maintenance and they're ugly.