Skip to content

Instantly share code, notes, and snippets.

View zinntikumugai's full-sized avatar

じんさん zinntikumugai

View GitHub Profile
//LAN
#include <Ethernet.h>
#include <SPI.h>
//DHTsernser
#include <DHT.h>
/*////////////////////////////
* LANシールド
* 4, 10, 11, 12, 13
* LAN: 10
#
#bitly
a @ 67.199.248.12
#サブドメインでやるならこっち
#cname b cname.bitly.com
//////////////////////////////////////
//Zinntikumugai_Push7_Widget
//another: zinntikumugai
//ver 1.0
//////////////////////////////////////
class Zinntikumugai_Push7_Widget extends WP_Widget {
function __construct() {
$widget_ops = array (
'classname' => 'zinntikumugai_push7_widget',
<?php
function getService() {
// Creates and returns the Analytics service object.
// Load the Google API PHP Client Library.
// https://github.com/google/google-api-php-client/tree/v1-master
require 'google-api-php-client/src/Google/autoload.php';
// Use the developers console and replace the values with your
<p>
アクセス数: <b id="AccessCounter"> 読み込み中 </b> PV<br>
ユーザー数: <b id="UserCounter"> 読み込み中 </b>
</p>
<p>
Google Analytics APIを使用しています。約1時間で更新しています。
</p>
<script>
/*$(function() {
$('#AccessCounter').load('http://www.zinntikumugai.com/PHPTool/ac');
<?php
/* Minecraft skin version 1.8.x用を 1.7.xに変換する(細かいことは気にするなver) */
//画像ファイルパス
$imgurl = './baseimage.png';
//画像の読み込み(PNG)
$image = imagecreatefrompng($imgurl);
//失敗したら終了
if( !$image ) {
#!/bin/bash
CPUMinerPATH='/home/user/cpuminer-multi/'
CPUMiner='cpuminer'
MinerAlgorithm='lyra2rev2'
MinerPoolURL='stratum+tcp://example.net:8888'
MinerUserANDWokerName='UserName.WokerName'
MienrWokerPass='WokerName'
#include <Wire.h>
int cnt = 0;
void setup() {
Wire.begin(); //Masterで起動
Serial.begin(9600);
Serial.println("");
}
void loop() {
Wire.requestFrom(8, 1); //ID:8のSlaveに1Byteリクエスト
void setup() {
Serial.begin(9600);
Serial.println("0");
//Serial.println('0');
//Serial.println(0);
//Serial.println();
//Serial.print(' ');
}
void loop() {
}
/*
* UdpNtpClientV1
*/
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetUdp.h>
/*
* LANシールド
* 4, 10, 11, 12, 13
* SPI: 11, 12, 13