Skip to content

Instantly share code, notes, and snippets.

norainu modeverv

View GitHub Profile
View changeColor.html
change color
<script>
var bgcolor = 0x0;
var body = document.getElementsByTagName('body')
var interval = setInterval(function(){
var value = "#" + ('000000' + (bgcolor++).toString(16)).slice(-6);
console.log(value);
body[0].style.backgroundColor = value;
if(0xffffff < bgcolor){
bgcolor = 0x0;
View mobile_backend_storage_query_sample.php
<?php
/*
curl -X GET -G \
-H "X-NCMB-Application-Key: eda167f64692337c2bd01e25f9ebbc3d03967ca5fd2b398c7ee8c0b393127436" \
-H "X-NCMB-Timestamp: 2018-11-30T07:41:48.769Z" \
-H "X-NCMB-Signature: jQg0MIuTewb5V8NiiXy3EkcmBYdm5Uxa6Hwg2Nk4JzA=" \
-H "Content-Type: application/json" \
--data-urlencode 'createDate={"$gte":"2018-10-30","$lte":"2018-10-30"}' \
https://mbaas.api.nifcloud.com/2013-09-01/classes/first
*/
@modeverv
modeverv / file0.txt
Created Nov 22, 2018
H2Oを実戦投入するためのいろいろ ref: https://qiita.com/lovesaemi/items/1c72a3c54b3a7f928c7e
View file0.txt
mruby.handler: |
require "htpasswd.rb"
Htpasswd.new("/path/to/.htpasswd", "Realm")
@modeverv
modeverv / file0.txt
Last active Nov 22, 2018
WEBサーバー3種(Apache(event mpm)/Nginx/H2O) 単純性能比較 ref: https://qiita.com/lovesaemi/items/3591c618030ff25567fc
View file0.txt
echo test > /var/www/html/test.html
View javaをキックするやつ
FOR /f "usebackq tokens=*" %%t IN (`where javaw`) do if not defined JAVAW set JAVAW=%%t
"%JAVAW%" -jar hoge.jar
@modeverv
modeverv / kirakira.html
Last active Oct 10, 2018
画面がキラキラするやつ
View kirakira.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
View swift_playground.swift
import UIKit
var str = "Hello, playground"
var hoge = "aaaa"
var a = "aeefe"
var x = "aafae"
View h2o_ip_acl_sample.rb
ALLOW_IPS = %w{
192.168.1.1
}
class Acl
def call(env)
if ALLOW_IPS.include? env['REMOTE_ADDR']
[399, {}, []]
else
[403, {'Content-Type' => 'text/plain;charset=utf-8'}, ['Forbidden']]
@modeverv
modeverv / file0.html
Last active Sep 16, 2018
websocketで映像を送受信するのでっち上げた=>スマホの電源の関係か24/365運用は無理=>0.5FPSにしたら24時間稼働OK ref: https://qiita.com/modeverv@github/items/17c5f27cd8f5110337a6
View file0.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Receive Video</title>
</head>
<body>
@modeverv
modeverv / file0.txt
Created Sep 12, 2018
[解決]AVPlayerでリモートの音声ファイルを再生しようとしてエラー ref: https://qiita.com/modeverv@github/items/b19210e72f320e568212
View file0.txt
CredStore - performQuery - Error copying matching creds. Error=-25300, query={
class = inet;
"m_Limit" = "m_LimitAll";
"r_Attributes" = 1;
sync = syna;
}
You can’t perform that action at this time.