Skip to content

Instantly share code, notes, and snippets.

@tommyjtl
tommyjtl / console.log
Created November 15, 2013 08:46
SpeedyBird ref file from *game campaign*.
The key "target-densitydpi" is not supported. game.js:353
wait53 game.js:230
notifyProcess8 game.js:121
[2013-11-15 16:41:43.639]w_scale:1,parseInt(div.style.width):1140
control.js:967
[2013-11-15 16:41:43.640]w_scale:1.263157894736842,parseInt(div.style.width):1140
control.js:967
[2013-11-15 16:41:44.664]post url[http://192.168.1.66:8079/game-server-front/game/bird/v1.0/activity];content[uid=testop&time=2013-11-15 16:41:44.664]
@tommyjtl
tommyjtl / understanding-css-specification.md
Created January 5, 2014 06:33
zh_CN translation for "Understanding CSS Specification".

#理解 CSS 规范

就算你不是一名计算机科学系的学生,甚至不用满十八岁或拿到学士学位,都可以读懂 W3C 的 CSS 文档,前提是你得乐于钻研、能耐下心,以及对细节缜密。

另外记住,规范并不是手册,如果你找到了一些文法或相关理解层面上的错误,欢迎指正。

##从零开始 J. David Eisenberg 之前有为网页设计人员写过一篇《如何阅读 W3C 标准》,大家不妨看看这篇为初学者准备的文章。

如果在此之前你完全不懂 CSS,建议先去网上搜阅资料了解一下,比如可以以 W3C 为初学者准备的 CSS 2.1 入门指南 作为参考。但如果你想要更全面的了解 CSS,建议买本学习指南仔细阅读;记住,重点在理解 CSS 的基础上,而不是更多想着表面上的设计。找款文本编辑器,用所学的知识写个简单的网页,了解选择器权重(selector specificity)和外边距合并(margin collapsing),或者尝试加上这段 { border: 1px dashed gray; } 代码到你的网页中以勾勒出一个盒模型(box model)。至此,只有读懂基础知识才能全面的理解规范。

<html>
<!-- Mirrored from justplaymobile.com/freegames/goosyfarmer/480px.htm by HTTrack Website Copier/3.x [XR&CO'2013], Tue, 15 Oct 2013 06:30:04 GMT -->
<head>
<title>Goosy Farmer</title>
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
<meta name="oupengmobile" content="landscape" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<style type="text/css">
*
<foaf:Person rdf:about="#technommy" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<foaf:name>Tommy Jingtao-Liu</foaf:name>
<foaf:homepage rdf:resource="http://technom.me/" />
<foaf:openid rdf:resource="http://technom.me/" />
<foaf:img rdf:resource="https://avatars2.githubusercontent.com/u/1622557" />
<foaf:mbox rdf:resource="hi@technom.me" />
</foaf:Person>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import cv2
import numpy as np
import aruco
if __name__ == '__main__':
# load board and camera parameters
boardconfig = aruco.BoardConfiguration("chessboardinfo_small_meters.yml")
camparam = aruco.CameraParameters()
camparam.readFromXMLFile("dfk72_6mm_param2.yml")
@tommyjtl
tommyjtl / ricoh-gr-ii.svg
Last active June 28, 2017 15:17
ricoh-gr-ii.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tommyjtl
tommyjtl / ricoh-gr-ii_mini.svg
Created May 10, 2017 10:30
ricoh-gr-ii_mini.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 ADD_DATE="1493908229" LAST_MODIFIED="1452765699" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks Bar</H3>
<DL><p>
{
"cocomodInput": {
"tempVal": "28.00",
"humdVal": "87.00",
"lghtVal": "100",
"uvVal": "10",
"micVal": "200"
},
"cocomodOutput": {
"ledState": "On",