This file contains hidden or 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 asyncio | |
from time import sleep, time | |
def blocker(txt): | |
sleep(3) | |
return 'aaa' + txt | |
def async_sample(loop): |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>使い捨てパッド暗号化</title> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> |
This file contains hidden or 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
ammount = process.argv[2] | |
each = process.argv[3] | |
interest = if process.argv[4] == undefined then 15.0 else process.argv[4] | |
interest_each_month = (interest / 12) / 100 | |
# console.log interest_each_month | |
# console.log ammount * interest_each_month | |
i = 0 | |
ammount = ammount - each |
This file contains hidden or 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を参考にしたコードを挿入するとグローバルヘッダが出てきます。 | |
href=""の中にurl、その横に表示したい言葉を入れるようにしてください。 | |
--> | |
<nav class="custom-header--navigation"> | |
<ul class="custom-header"> | |
<li class="custom-header__li"><a href="/">TOP</a></li> | |
<li class="custom-header__li"><a href="/archive/category/プログラミング">プログラミング</a></li> | |
<li class="custom-header__li"><a href="/archive/category/料理">料理</a></li> |
This file contains hidden or 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
### | |
The MIT License (MIT) | |
Copyright (c) <2014> <OGURA_Daiki> | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
from __future__ import (print_function, division, absolute_import, unicode_literals, ) | |
from inspect import getargspec | |
from functools import wraps | |
from operator import methodcaller | |
PREFIX_FOR_INJECT_ARGS = 'pij_' |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Rxデモ</title> | |
<style> | |
.hidden { | |
display: none; | |
} |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
from __future__ import (print_function, division, absolute_import, unicode_literals, ) | |
def bubble_sort(xs): | |
count = len(xs) - 1 | |
def flip(ys): | |
for i in xrange(count): | |
first = ys[i] |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
from __future__ import (print_function, division, absolute_import, unicode_literals, ) | |
from operator import methodcaller | |
class _Guard(object): | |
def __get__(self, owner, type=None): | |
self.owner = owner | |
return self |