Skip to content

Instantly share code, notes, and snippets.

@calmery
calmery / drawing.html
Last active January 8, 2018 14:36
Hyperapp
<!DOCTYPE html>
<html>
<head>
<script src="hyperapp.js"></script>
<script>
// State
const state = {
  • [翻訳記事]マイクロフロントエンド - マイクロサービスのフロントエンドへの応用
  • バックエンドのマイクロサービスと連携した各アプリケーションのライブラリ,フレームワークに依存しない UI,処理を提供するフロントエンドのモジュールのこと
    • 特徴
      • どのアプリケーションでも使用できる
      • フレームワークに依存しない
        • 技術選択が自由になる
        • 連携には DOM の API を使用する
          • Web Components など(Polyfill が必要そう)
      • インポートすれば全ての機能を利用できる
  • パーツ毎に独立させる
@calmery
calmery / four_arithmetic_operations.py
Created January 8, 2018 14:35
Four arithmetic operations
def is_digit( num ) :
if num in list( map( lambda n: str( n ), range( 10 ) ) ) :
return True
return False
class Tokenizer :
def __init__( self, formula ) :
self.formula = formula
self.tokens = []
import Foundation
import MediaPlayer
@objc(MusicLibrary) class MusicLibrary : CDVPlugin {
func getAlbums(_ command: CDVInvokedUrlCommand) {
let albumItems = MPMediaQuery.albums().items as [MPMediaItem]?
if albumItems == nil {
let result = CDVPluginResult(status: CDVCommandStatus_OK, messageAs: [])
TypeScript 1 hr 49 mins ███████▎░░░░░░░░░░░░░ 35.0%
Slim 1 hr 42 mins ██████▉░░░░░░░░░░░░░░ 32.8%
Ruby 47 mins ███▏░░░░░░░░░░░░░░░░░ 15.2%
JavaScript 17 mins █▏░░░░░░░░░░░░░░░░░░░ 5.8%
YAML 10 mins ▋░░░░░░░░░░░░░░░░░░░░ 3.5%