- CARTA HOLDINGS(旧VOYAGE GROUP)
- 技術広報が新卒研修<Open AIハッカソン>をスパイしてみた - (2023/04/11)
- @t_wadaに学ぶテスト駆動開発【CARTA 23新卒研修】 - (2023/04/19)
- 【新卒研修】監修者@t_wadaと読む!プログラマが知るべき97のこと読書会 - (2024/04/09)
- Classi
- 当たり前にリリースしていく ~ 新卒研修編 - (2021/05/20)
- リモートワークのための質問力向上研修を実施しました - (2021/12/07)
- Classi 2025年新卒エンジニア研修「そーだい塾」を開催しました - (2025/06/18)
- CyberZ
| import 'package:flutter/material.dart'; | |
| import 'dart:async'; | |
| import 'dart:math'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| // This widget is the root of your application. |
| package io.github.yaraki.playground | |
| import android.app.Application | |
| import android.arch.lifecycle.AndroidViewModel | |
| import android.content.Context | |
| class MainViewModel(application: Application) : AndroidViewModel(application) { | |
| companion object { | |
| const val PREF = "main" |
| // status bar height | |
| int statusBarHeight = 0; | |
| int resourceId = getResources().getIdentifier("status_bar_height", "dimen", "android"); | |
| if (resourceId > 0) { | |
| statusBarHeight = getResources().getDimensionPixelSize(resourceId); | |
| } | |
| // action bar height | |
| int actionBarHeight = 0; | |
| final TypedArray styledAttributes = getActivity().getTheme().obtainStyledAttributes( |
| -(UIImage*) cropCameraImage:(UIImage*) original toPreviewLayerBounds:(AVCaptureVideoPreviewLayer*) previewLayer { | |
| UIImage *ret = nil; | |
| CGRect previewImageLayerBounds = previewLayer.bounds; | |
| // This calculates the crop area. | |
| // keeping in mind that this works with on an unrotated image (so a portrait image is actually rotated counterclockwise) | |
| // thats why we use originalHeight to calculate the width | |
| float originalWidth = original.size.width; | |
| float originalHeight = original.size.height; |
Implementing GCM Client の日本語訳
https://developer.android.com/google/gcm/client.html
GCMクライアントとは、GCMが内蔵されたアプリのことです。クライアントコードでは、GoogleCloudMessaging APIを使うことを推奨します。このヘルパライブラリは、古いバージョンのGCMが動くことを保証していますが、その代替かつ、より有益なGoogleCloudMessaging APIを提供しています。
完全なGCMの実装には、クライアントとサーバーサイド両方の実装が必要です。サーバーサイドの実装に関してはImplementing GCM Serverを参照して下さい。
The final result: require() any module on npm in your browser console with browserify
This article is written to explain how the above gif works in the chrome (and other) browser consoles. A quick disclaimer: this whole thing is a huge hack, it shouldn't be used for anything seriously, and there are probably much better ways of accomplishing the same.
Update: There are much better ways of accomplishing the same, and the script has been updated to use a much simpler method pulling directly from browserify-cdn. See this thread for details: mathisonian/requirify#5
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <!-- google's material design colours from | |
| http://www.google.com/design/spec/style/color.html#color-ui-color-palette --> | |
| <!--reds--> | |
| <color name="md_red_50">#FFEBEE</color> | |
| <color name="md_red_100">#FFCDD2</color> | |
| <color name="md_red_200">#EF9A9A</color> |
| // | |
| // API.swift | |
| // | |
| // Created by Taro Minowa on 6/10/14. | |
| // Copyright (c) 2014 Higepon Taro Minowa. All rights reserved. | |
| // | |
| import Foundation | |
| typealias JSONDictionary = Dictionary<String, AnyObject> |
