https://people.csail.mit.edu/brooks/papers/how-to-build.pdf
ロドニーA.ブルックス マサチューセッツ工科大学、人工知能研究所
どのようにして、私たちと同じ世界に生息する人工生物を構築できますか?私にとって、これは常に人工知能のロマンスでした。
import 'dart:async'; | |
final stream = StreamController<int>(); | |
void main() async { | |
stream.stream.listen((d) { | |
print(d); | |
}, onError:(e){ | |
print(e); | |
}, cancelOnError: true); |
https://people.csail.mit.edu/brooks/papers/how-to-build.pdf
ロドニーA.ブルックス マサチューセッツ工科大学、人工知能研究所
どのようにして、私たちと同じ世界に生息する人工生物を構築できますか?私にとって、これは常に人工知能のロマンスでした。
const detachAndFlatten = (pageName) => { | |
const detach = (c) => figma.union([c], c.parent) | |
const page = figma.root.children.find(c => c.name === pageName) | |
const frames = page.children.filter(c => c.type === "FRAME") | |
for (let frame of frames) { | |
for (let c of frame.children) { | |
if (c.type === "INSTANCE") { | |
c = detach(c) | |
} else { |
using System; | |
using UniRx; | |
namespace WMN | |
{ | |
// 値を変更しても即座に変わらない ReactiveProperty | |
public class LazyReactiveProperty<T> : ReactiveProperty<T> | |
{ | |
/* | |
* 値が変更されようとしたときに呼ばれる。 |
using System; | |
using UniRx; | |
namespace WMN | |
{ | |
// ReactiveDictionary の特定の key だけを監視する IReactiveProperty を作る | |
public class DictionaryKeyReactiveProperty<T, K, V> : IReactiveProperty<T> where T: V | |
{ | |
private ReactiveDictionary<K, V> dict; | |
private K key; |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Photon.Pun; | |
using UniRx; | |
namespace WMN | |
{ | |
// Room の Custom Properties を ReactiveDictionary に変換するクラス |
using System; | |
using System.Collections.Generic; | |
using UniRx; | |
namespace WMN | |
{ | |
// 任意の IObservable を IReadOnlyReactiveProperty として扱えるようにするクラス | |
public class ReadOnlyObservablePropertyWrapper<T> : IReadOnlyReactiveProperty<T> | |
{ | |
private readonly IObservable<T> source; |
#!/usr/local/bin/fish | |
git checkout-index -a -f --prefix="git-export/"; | |
mv git-export ~/Desktop/(basename (pwd)); |
const csv = require("csv") | |
const fs = require("fs") | |
const _ = require("lodash") | |
console.log("start processing") | |
csv.parse(fs.readFileSync("./kanko_all.csv"), (error, data) => { | |
if (error) { | |
console.error(error) | |
return |
Swift code generator for resources https://github.com/SwiftGen/SwiftGen
Meta programming https://github.com/krzysztofzablocki/Sourcery
Storyboard Code Generator https://github.com/krzyzanowskim/Natalie
generate code based on templates written using the Stencil syntax