Skip to content

Instantly share code, notes, and snippets.

View YasuakiHirano's full-sized avatar
🎮

yasuaki hirano YasuakiHirano

🎮
View GitHub Profile
<!DOCTYPE html>
<html lang="jp">
<head>
<meta charset="UTF-8">
<title></title>
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script>
(function( $ ){
$.fn.kusa = function() {
var windowWidth = $(window).width();
body {
background:black;
}
/*-- 上記以外 -*/
@media screen and (max-width: 1024px) {
body {
background-color:olive;
}
}
/*-- 768px以下はタブレット&スマホ 基本これのみでよさそう--*/
.circle{
background-color: #999;
background: #cccccc;
height: 100px;
width: 100px;
text-align:center;
vertical-align:middle;
border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
/*--デスクトップサイズ--*/
body {
background:black;
color:#ffffff;
}
#pcSize{
font-size:250%;
display:block;
}
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<script src="https://code.jquery.com/jquery-3.1.0.min.js"></script>
<title></title>
<style>
#page-top {
position: fixed;
bottom: 20px;
var gulp = require('gulp');
var webserver = require('gulp-webserver');
gulp.task('default', function(){
console.log("start");
});
gulp.task('web', function(){
console.log("start server");
gulp.src('app')
@YasuakiHirano
YasuakiHirano / top_list.blade.php
Created May 11, 2019 17:07
codelike_bbs top screen sample file
<!doctype html>
<html lang="ja">
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<title>codelike bbs</title>
</head>
<body>
<nav class="navbar navbar-dark bg-dark">
<a class="navbar-brand" href="#">codelike bbs</a>
</nav>
@YasuakiHirano
YasuakiHirano / list_output_csv.php
Last active May 23, 2019 06:46
csv output lists(php)
<?php
$mode = $_POST["mode"];
// ヘッダ行
$head = ['id', '名前', '説明', '価格'];
// データ行
$data = [
["00001", 'りんご', '12個です', '1,200'],
["00002", 'ぶどう', 'ひとつぶです', '10,200'],
<html>
<head>
<title>jqueryイベントテスト</title>
<script
src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script>
@YasuakiHirano
YasuakiHirano / guzzle_zipcloud.php
Created May 29, 2019 14:54
test of zipcloud api
<?php
require 'vendor/autoload.php';
use GuzzleHttp\Client;
if ($_POST["mode"] == 'search') {
$client = new Client();
$url = 'http://zipcloud.ibsnet.co.jp/api/search';
$option = [