ES Class Fields (Stage 2 now)
プライベートフィールドがハッシュな変態記法なのは何でなんだぜ?
class Point {
#x;
#y;
constructor(x = 0, y = 0) {| import React from "react"; | |
| import { Dimensions, TextInput, ScrollView } from "react-native"; | |
| import Animated, { | |
| useAnimatedKeyboard, | |
| useAnimatedReaction, | |
| runOnJS, | |
| KeyboardState, | |
| useAnimatedProps, | |
| useAnimatedScrollHandler, |
| // NOTE: The preferred way is to install lcov and use command `lcov --summary path/to/lcov.info` | |
| // Use this script only if you can't install lcov on your platform. | |
| // Usage: dart coverage.dart path/to/lcov.info | |
| import 'dart:io'; | |
| void main(List<String> args) async { | |
| final lcovFile = args[0]; | |
| final lines = await File(lcovFile).readAsLines(); |
プライベートフィールドがハッシュな変態記法なのは何でなんだぜ?
class Point {
#x;
#y;
constructor(x = 0, y = 0) {| RN < 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache | |
| RN >= 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache | |
| RN >= 0.63 - watchman watch-del-all && rm -rf node_modules && npm install && rm -rf /tmp/metro-* && npm run start --reset-cache | |
| npm >= 5 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache | |
| Windows - del %appdata%\Temp\react-native-* & cd android & gradlew clean & cd .. & del node_modules/ & npm cache clean --force & npm install & npm start -- --reset-cache |
| 更新: | 2024-05-20 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 2024.1 |
| URL: | https://voluntas.github.io/ |
| 更新: | 2022-03-18 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 2022.1 |
| URL: | http://voluntas.github.io/ |
JavaScript を使っていると「JavaScript出来るの? jQuery / AngularJS / Node.js etc... で困ってるんだけどさー」みたいな話を振られることがあります。 そういった時に、自分は一般的なライブラリの使い方やフレームワークに対して大した知見も興味もないので、わざわざ説明するのも面倒なのでこうして文章にしておきます。(本当に届いて欲しい人に限って、こういう文章が届かないのはわかっていますが、文章を書くこと自体が気晴らしだと思って諦めます。)
先ほどのような話は自分に限ったことではなく、たぶん経験のある人も多いでしょう。 振られた話が自分の分かる範囲、あるいは興味のあるものならばまだ良いのですが、そうでないことがあまりに多すぎます。 話を振られるだけならともかく「JavaScriptできるんでしょ? じゃあ jQuery つかったこのサービスのメンテしてほしいんだけどー」みたいに仕事として振られることもあり、そう言う時は脳みそ取り出して洗剤で洗った方が良いのでは、と思うことも多々あります。
| var url = 'http://www.example.com/'; | |
| var to = 'foo@example.com'; | |
| var sub = 'サーバ障害報告'; | |
| var body = "監視中の サーバが停止した模様です。サーバの状態を確認してください。\n" + url ; | |
| function myFunction() | |
| { | |
| if(check_server(url) != 200){ | |
| MailApp.sendEmail(to, sub, body); |
| "use strict"; | |
| var express = require('express') | |
| , http = require('http') | |
| , path = require('path') | |
| , io = require('socket.io') | |
| , connect = require("express/node_modules/connect") | |
| , Session = express.session.Session | |
| , app = express(); | |
| //メモリストアかRedisのどちらかでセッションを保存 |