Python

コード下記

import os, math
from base64 import b64encode
randStr = lambda n: b64encode(os.urandom(int(math.ce ...

Software

①URL+”&”+”t=”+Math.random();

②”?timestamp=” + new Date().getTime(); ...

JavaScript

参考コード
<script src=”jquery-1.7.1.js”></script>
<script src=”jquery-1.12.4.js& ...

PHP

サンプルコード

function deldir($path)
{
if ($handle=opendir($path))
{
while (false!==($file=readdir($h ...

PHP

phpコード:
$pagesize=10;
$url=$_SERVER;
$url=parse_url($url);
$url=$url;
$numq=mysql_query(“SE ...

PHP

ignore_user_abort
クライアントの接続が切断された際にスクリプトの実行を終了するかどうかを設定する
int ignore_user_abort ( )

set_time_limit

PHP

phpコード
<?php

$logfile = “tewf_2016.log”;
$timezone = “+0100”;/* Timezone cor ...

PHP

参考コード:
function mailCheck(valpp) {
if (valpp != “” ){
if (!valpp.match(/^+@+$/)){
return ...

PHP

phpコード:
function url_Validate(p) {
var regexp =/(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:+)?(\/|\/())?/
re ...

PHP

1.escape定義関数
function escape($string, $in_encoding = ‘UTF-8’,$out_encoding = ‘UCS-2’) {

PHP

array_walk_recursive — 配列の全ての要素に、ユーザー関数を再帰的に適用する

phpコード:
$arr = array(
‘name’=>’to ...

PHP

function toEscape($array) {
$tmp = array ();
foreach ( $array as $key => $value )
$tmp = str_replace ...

VB.net

1.パスワードをチェック
Regex.Ismatch(str_password,@”+”);

2.小数点2桁をチェック
Regex.Ismatch(str_decimal,@R ...

PHP

PHPコード
if(isset($_SERVER) && strtolower($_SERVER)==”xmlhttprequest”){
//ajaxリクエスト
}el ...

PHP

phpコード
<?php
$arr =array(‘New’,’Skill’,’Techincal’,’Change’ ...

Ubuntu

操作方法
# ifconfig -a

Command ‘ifconfig’ not found, but can be installed with:

apt install n ...

VB.net

方法1
Response.Buffer = true;
Response.ExpiresAbsolute = DateTime.Now.AddDays(-1);
Response.Cache.SetExpire ...

Java

JAVAコード

1.List–>JSON文字列
@SuppressWarnings(“rawtypes”)
public static String simpleL ...