Skip to content

Instantly share code, notes, and snippets.

View kinjouj's full-sized avatar
😀

kinjouj kinjouj

😀
  • I`m not a Programmer
View GitHub Profile
@kinjouj
kinjouj / index.html
Created July 10, 2025 06:56
scroll-snap-type
<html>
<head>
<link rel="stylesheet" type="text/css" href="./style.css" />
</head>
<body>
<div id="container">
<div id="box1" class="box bg-1">box1</div>
<div id="box2" class="box bg-2">box2</div>
<div id="box3" class="box bg-3">box3</div>
<div id="box4" class="box bg-4">box4</div>
@kinjouj
kinjouj / record.sh
Last active June 8, 2025 14:06
ffmpegで矩形範囲を録画・録音する方法
#!/bin/bash
SLOP=$(slop -q -f "%x %y %w %h") || exit 1
read -r X Y W H G ID < <(echo $SLOP)
ffmpeg -threads 0 -y -f x11grab \
-s "$W"x"$H" \
-i :0.0+$X,$Y \
-f alsa \
-i default \
-c:v libx264 \
@kinjouj
kinjouj / client.js
Last active October 26, 2016 12:04
let Liftoff = require("liftoff");
let { jsVariants } = require("interpret");
new Liftoff(
{
name: "echo",
configName: "echo.config",
extensions: jsVariants
}
).launch({}, (env) => {
package sample;
import java.util.ArrayList;
import java.util.List;
import java.util.NoSuchElementException;
import com.annimon.stream.Collectors;
import com.annimon.stream.Optional;
import com.annimon.stream.Stream;
import com.annimon.stream.function.Consumer;
import com.annimon.stream.function.Predicate;
@kinjouj
kinjouj / CompositeSubscriptionTest.java
Created July 14, 2015 11:45
CompositeSubscription test
import rx.subscriptions.BooleanSubscription;
import rx.subscriptions.CompositeSubscription;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertThat;
import static org.hamcrest.Matchers.*;
public class CompositeSubscriptionTest {
@kinjouj
kinjouj / bar.svg
Created January 15, 2014 08:52
SVG Bar and Line Chart
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kinjouj
kinjouj / index.html
Created October 9, 2013 11:28
HTML5 <canvas> javascript rendering bar and line and point chart
<html>
<head>
<script type="text/javascript" src="underscore.js"></script>
</head>
<body>
<canvas id="canvas" width="700" height="600"></canvas>
<script type="text/javascript">
var canvas = document.getElementById('canvas');
var context = canvas.getContext('2d');
@kinjouj
kinjouj / AndroidManifest.xml
Last active November 20, 2024 13:00
android.service.dreams.DreamService(DayDream) Example 2013/02/27 update settingsActivity
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="sample.test"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="17" android:targetSdkVersion="17" />
<application
android:icon="@drawable/ic_launcher"
@kinjouj
kinjouj / test.js
Created June 1, 2012 11:56
JavaScript typed array study demo1
(function() {
"use strict";
var text = 'abcdef';
var text_len = text.length;
var ar = new Array(text_len);
for (var i = 0;i < text_len;i++) {
ar[i] = text.charCodeAt(i);
@kinjouj
kinjouj / app.js
Created May 1, 2012 06:39
node.js+express+tes-tcp+QUnit
var express = require("express");
var app = express.createServer(express.logger());
app.get("/", function(req, res) {
res.send("hoge");
});
module.exports = app;