This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <time.h> | |
| int main(void) { | |
| int jst = 9*60*60; | |
| time_t t; | |
| time(&t); | |
| printf("Local: %d\n", t); | |
| printf("UTC: %d\n", t - jst); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from reportlab.pdfgen import canvas | |
| from reportlab.lib.units import cm | |
| from reportlab.lib.pagesizes import A4 | |
| cvs = canvas.Canvas('out.pdf', pagesize=A4) | |
| width, height = A4 | |
| # for img in images | |
| cvs.drawImage('image.jpg', 0, 0, width, height) | |
| cvs.showPage() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AppProjects/ | |
| ./PROJECT_NAME/ | |
| ../build.gradle | |
| ../settings.gradle | |
| ../app/ | |
| .../build.gradle | |
| .../src | |
| ..../AndroidManifest.xml | |
| ..../java/PACKAGE/ | |
| ...../MainActivity.java |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| chcp 65001 | |
| echo ACスリープタイマーを0にセットします | |
| powercfg /CHANGE standby-timeout-ac 0 | |
| pause | |
| powercfg /CHANGE standby-timeout-ac 15 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <opencv2\opencv.hpp> | |
| using namespace cv; | |
| int main() { | |
| Mat mat(400, 400, CV_8UC3, Scalar(255, 128, 0)); | |
| imshow("mat", mat); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import sys | |
| import shutil | |
| import tempfile | |
| import time | |
| import json | |
| import sqlite3 | |
| DATA_DIR = '.psdata' | |
| OUT_DIR = 'out' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:var ls=[];var els=document.querySelectorAll('a.title');for(var i=0,l=els.length;i<l;i++)ls.push(els[i].href.match(/syosetu.com\/(.+)\//)[1]);var w=window.open('','js_na');var p=w.document.createElement('pre');p.innerText=ls.join('-');w.document.body.append(p);void(0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:var ls=[];var els=document.querySelectorAll('a.title');for(var i=0,l=els.length;i<l;i++)ls.push(els[i].href.match(/syosetu.com\/(.+)\//)[1]);var w=window.open('','js_na');var p=w.document.createElement('pre');p.innerText=JSON.stringify({'length':ls.length,'ncode':ls});w.document.body.append(p);void(0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @SubscribeEvent | |
| public void doRender(RenderWorldLastEvent event) { | |
| Minecraft mc = Minecraft.getMinecraft(); | |
| double playerX = mc.player.posX; | |
| double playerY = mc.player.posY; | |
| double playerZ = mc.player.posZ; | |
| BlockPos blockPos = new BlockPos(playerX, playerY -1, playerZ); // プレイヤーの足元 | |
| glPushMatrix(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import net.minecraft.client.Minecraft; | |
| import net.minecraftforge.client.event.RenderWorldLastEvent; | |
| import net.minecraftforge.common.MinecraftForge; | |
| import net.minecraftforge.fml.common.Mod; | |
| import net.minecraftforge.fml.common.Mod.EventHandler; | |
| import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; | |
| import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; | |
| import org.lwjgl.util.glu.GLU; | |
| import org.lwjgl.util.glu.Sphere; |
NewerOlder