2013 Minori Yamashita [email protected]
-- ここにあなたの名前を追記 --
var fs = require("fs"); | |
var path = require("path"); | |
var util = require("util"); | |
var styl = require("stylus"); | |
var wrench = require("wrench"); | |
function compileTSS(root, view) { | |
var data = fs.readFileSync(path.join(root, view), "utf8"), | |
tss; | |
styl.render(data, function (err, css) { |
2013 Minori Yamashita [email protected]
-- ここにあなたの名前を追記 --
var stream = require('stream'); | |
function streamify(text) { | |
var s = new stream.Readable(); | |
s.push(text); | |
s.push(null); | |
return s; | |
} | |
streamify('foo\n').pipe(process.stdout); |
# http://builds.appcelerator.com.s3.amazonaws.com/index.html#3.4.0 | |
# RC2 | |
ti sdk install http://builds.appcelerator.com/mobile/3.4.0/mobilesdk-3.4.0.RC2-osx.zip | |
# RC1 | |
ti sdk install http://builds.appcelerator.com/mobile/3.4.0/mobilesdk-3.4.0.RC-osx.zip |
I fell in love with CoffeeScript a couple of years ago. Javascript has always seemed something of an interesting curiosity to me and I was happy to see the meteoric rise of Node.js, but coming from a background of Python I really preferred a cleaner syntax.
In any fast moving community it is inevitable that things will change, and so today we see a big shift toward ES6, the new version of Javascript. It incorporates a handful of the nicer features from CoffeeScript and is usable today through tools like Babel. Here are some of my thoughts and issues on moving away from CoffeeScript in favor of ES6.
While reading I suggest keeping open a tab to Babel's learning ES6 page. The examples there are great.
Holy punctuation, Batman! Say goodbye to your whitespace and hello to parenthesis, curly braces, and semicolons again. Even with the advanced ES6 syntax you'll find yourself writing a lot more punctuatio
#!/bin/sh -e | |
for attr in $(seq 0 1); do | |
for fg in $(seq 30 37); do | |
for bg in $(seq 40 47); do | |
printf "\033[$attr;${bg};${fg}m$attr;$fg;$bg\033[m " | |
done | |
echo | |
done | |
done |
[Flow][] static type checker is a wonderful attempt to bring [algebric data types][] to JS. It is still fairly new project and there for has few WTFs that can pull you down the rabbit hole. This document is attempt to document things that may seem like a WTF from the perspective of JS developer who tries to employ static type checker, or in other words, some items on the list may be very subjective & based on the background of the writer.
It is very likely that one will wind up using [Polymorphic functions][] to solve a more general problem. And if you define type alias for such a function you may be puzzled what is the right syntax should be used for such type definition.
Let's start with:
爽健美茶 | 十六茶 | からだ巡り茶 | |
---|---|---|---|
ドクダミ | ✅ | ✅ | |
熊笹 | ✅ | ||
杜仲茶 | ✅ | ||
はすの葉 | ✅ | ||
クコ葉 | ✅ | ||
みかんの皮 | ✅ | ||
高麗人参 | ✅ | ||
霊芝 | ✅ |
Git 2.26.0以下*1には、細工したリポジトリをgit clone
したときに、
そのユーザーのCredential(たとえばGitHub.comをcloneするときに使う認証情報)を奪い取れる脆弱性があります。
📝 取得できる認証情報は credential.helper
の設定に依存する
既にPoC(検証するためのコード)もあり、結構簡単なので是非Gitを2.26.1以上にアップデートしましょう。 git submoduleを使うと見た目ではわかりにくい攻撃もできるので、「気をつける」では回避は難しいです。