Skip to content

Instantly share code, notes, and snippets.

View ndxbn's full-sized avatar
🏠
Working from home

Sitri Kamishirasawa ndxbn

🏠
Working from home
View GitHub Profile
  • IEだけはもちろん、Operaだけで有効 みたいなのもあるから、優秀だと思う。
  • (Twitter)bootstrap の、text readonly とかが有効にならなかったバグに対するFixとかがされてる
  • たぶん、bootstrapに上書きするようにして使うんだと思う。
  • bootstrap のダークテーマ版。
  • diffれば参考になるのかなぁとかおもったりはするけれど、。
@ndxbn
ndxbn / common.php
Last active December 20, 2015 18:06
学校の期末の問3の回答。
<?php
/*
* @author sitri@ndxbn
*/
/* @Param $s エスケープする文字列
* @Retern String エスケープした文字列
*/
function h($s){
return htmlspecialchars($s, ENT_QUOTES, 'UTF-8');
@ndxbn
ndxbn / index.php
Last active July 4, 2016 07:48
なんか書き込みだけできる掲示板的なやつ。(時間制限90分)
<?php
// 関数
function tp($s){
echo '<pre>';var_dump($s);echo'</pre>';
}
function h($s){
return htmlspecialchars($s, ENT_QUOTES, 'utf-8');
}
$post_white_list = [
'name' => FILTER_DEFAULT,
@ndxbn
ndxbn / index.php
Created March 3, 2015 03:21
これって、ダメなやつ?
<?php
ob_start();
?>
<html>
<body>
<div>なんかいろいろ</div>
<script>
<?php include 't.js'; ?>
@ndxbn
ndxbn / gist:ebfc2d334255a03bc9b7
Last active August 29, 2015 14:27
download web-site by wget
wget -r -k -nc -np -l inf -w 1 --random-wait --restrict-file-names=windows -E
@ndxbn
ndxbn / php.ini-dev
Created May 6, 2016 06:14
minimal php.ini for development (with xdebug)
[PHP]
;user_ini.filename = ".user.ini"
;user_ini.filename =
;user_ini.cache_ttl = 300
engine = On
short_open_tag = Off
precision = 14
output_buffering = 4096
;output_handler =
zlib.output_compression = Off
@ndxbn
ndxbn / pretty_bell_tags.md
Last active June 9, 2017 03:01
プリティベル 各巻のタグ(自分用)

目的、状況、手段、結果
現状、恒久的な目標(理念)、ゴール、マイルストーン

15

目玉焼き チンピラ 「信用に決まってんだろ」

16

ニャルラトホテプ 東軍 討論会 ガソリン

18

@ndxbn
ndxbn / markdown.syntax.xml
Last active July 6, 2016 04:19
notepad++ style setting file
<NotepadPlus>
<UserLang name="Markdown" ext="md markdown" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="yes" Keywords2="yes" Keywords3="yes" Keywords4="yes" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00# 01 02 03&lt;!-- 04--&gt;</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>