Skip to content

Instantly share code, notes, and snippets.

@dreammis
dreammis / install.sh
Created December 18, 2018 11:31 — forked from anhldbk/install.sh
Install Kong API Gateway on Ubuntu
sudo apt-get install netcat openssl libpcre3 dnsmasq procps perl
# for ubuntu 16.04 (xenial)
sudo apt-get -y install postgresql postgresql-contrib phppgadmin
sudo -i -u postgres
psql
CREATE USER kong; CREATE DATABASE kong OWNER kong;
ALTER USER kong WITH password 'kong';
awesome-python-webapp
awesome-python-webapp
awesome-python-webapp
@dreammis
dreammis / arial.ttf
Created September 11, 2015 03:11
验证码生成
This file has been truncated, but you can view the full file.
�DSIG�7乊 颁|GDEF夬岻
鍸翯POS{V珶
��GSUB轇`Q �,楯STFm*i 澳LTSHCLc�7� \OS/22]s`PCLT齵>C
�6VDMXP抝�E$攃map擶U梎"^cvt �纂损Tfpgm蘺Y�估ngasp
�glyf�楐�/辢dmx盺鋁V�@╤ead軻E��6hhea3!�$hmtxZ曼h5`kern7a96
7�`loca7&�褼5dmaxp��� name璩推
L�
`post$慹�
WH幑prep%諱��0 �\夀7_<�€'*葢臈齡 >﨨C鷝 X X�<�/V����3�3�f �*��xC TMC @ ��誉Q3>睝���&� 999��^ssIwVX�Z�|�|@�r9��A9�9sUs�s<sVssUsMsasSsU9�9��p�r�psZoV��V��f��V���9m��9�7V�s�����9cV�9X��V\�0��V �V V�)9�99'�6s���YsJs�PsFsK9sBs����������s�sDs�sH��?9$s��!(�9��/�WV��V���hV���9c��sJsJsJsJsJsJPsK
# # -*- coding: utf-8 -*-
#
#
# print u'你好'
# a = raw_input(u"现在是几点了:".encode('gbk').decode('gbk'))
# print u'sb''
def pow(x, n = 2):
s = 1
for i in range(0,n):