This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"> | |
<style> | |
* { | |
box-sizing: border-box; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"> | |
<style> | |
* { | |
box-sizing: border-box; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import shutil | |
import subprocess | |
from typing import Optional | |
import xmltodict | |
import requests | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dec 31, 2020 3:01:59 AM org.seasar.mayaa.impl.FactoryFactoryImpl marshallFactory | |
INFO: marshall factory: /org.seasar.mayaa.cycle.CycleFactory | |
Dec 31, 2020 3:01:59 AM org.seasar.mayaa.impl.FactoryFactoryImpl marshallFactory | |
INFO: marshall factory: /org.seasar.mayaa.source.PageSourceFactory | |
Dec 31, 2020 3:01:59 AM org.seasar.mayaa.impl.source.PageSourceFactoryImpl setParameter | |
INFO: folder: /WEB-INF/page | |
Dec 31, 2020 3:01:59 AM org.seasar.mayaa.impl.engine.error.TemplateErrorHandler doErrorHandle | |
INFO: error template not found, /java.lang.ArrayIndexOutOfBoundsException | |
Dec 31, 2020 3:01:59 AM org.seasar.mayaa.impl.engine.error.TemplateErrorHandler doErrorHandle | |
INFO: error template not found, /java.lang.IndexOutOfBoundsException |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:convert'; | |
import 'package:flutter/material.dart'; | |
import 'package:encrypt/encrypt.dart' as encrypt; | |
import 'package:crypto/crypto.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# git | |
alias A="git add ." | |
alias S="git branch -v; git status" | |
alias SU="git submodule update -i" | |
alias C="git commit" | |
alias CO="git checkout" | |
alias B="git branch -vv" | |
alias LL="git log --graph --date=iso --decorate --name-status" | |
alias L="git log --graph --date-order -C -M --pretty=format:\"<%h> %ad [%an] %Cgreen%d%Creset %s\" --all --date=short" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyClass: | |
@property | |
def always_true(self): | |
print('in_always_true') | |
return True | |
@property | |
def always_false(self): | |
print('in_always_false') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* popover confirmation | |
*/ | |
(function () { | |
let $formPopoverConfirm = $('form.popover-confirm'); | |
if (!$formPopoverConfirm.length) { | |
return; | |
} | |
$formPopoverConfirm.on('submit', function () { | |
let $this = $(this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* meta タグの data をプロパティとしたオブジェクトを作る | |
* 例: for(instance of MetaDataModel.all('meta.items')) { ... } | |
* 継承して getAllQuery のオーバーライド推奨 | |
*/ | |
class MetaDataModel { | |
constructor(q) { | |
this.query = q; | |
Object.assign(this, q.data()) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Adobe inDesign 用 | |
// Array.indexOf が実装されてないので、作る | |
Array.prototype.indexOf = function(item){ | |
for(var i = 0; i<this.length; i++) { | |
if(this[i] === item) { | |
return i; | |
} | |
} | |
return -1; |
NewerOlder