Search

stitchzaa

Some useful code & information for web dev (HTML5, CSS3, JavaScript) and iOS app dev (Swift)

Category

Uncategorized

Set environment for Angular + node.js + exist repository project from zero

– Register Bitbucket then import (or create a new one).
– Install SourceTree for controlling repository.
– Check out repo in SourceTree.
– Install node.js
– Install Git
– open cmd and go to target ‘directory’.
> npm install
> bower install
> npm install -g gulp
> npm start
– open another cmd and go to target ‘directory’.
> gulp watch

Data-binding

Link of information about Data-binding Revolutions with Object.observe()

http://www.html5rocks.com/en/tutorials/es7/observe/

Material icons from Google

Material flat icons for web, Android, and iOS projects.

https://www.google.com/design/icons/

วิธีการดึง HTML ทั้งหมดออกจาก iFrame

ใช้ Mootools สร้าง iFrame เซ็ท name และใส่เข้าไปใน body
var iframe = new Element('iframe',{'name': 'test1','src': 'http:www.test.com'}).inject(document.body);

เรียกหาผ่าน object ที่ชื่อ window ตามโค้ด
window['test1']['document']['body'].innerHTML
ก็จะได้โค้ดที่อยู่ใน body ของ iframe ทั้งหมด

ป.ล. วิธีนี้ใช้ Mootools ช่วย

My evening coffee. ^^

20111009-061517.jpg

I left from McCormic hospital and back to my house at Chaiprakarn. My health is better than last month but I am not strong enough to back to work. Doctor advised me to rest at least a week before back to work.

Create a free website or blog at WordPress.com.

Up ↑