Skip to content

Instantly share code, notes, and snippets.

View tseijp's full-sized avatar
💬
for (; ;)

tsei tseijp

💬
for (; ;)
View GitHub Profile
# Determine the keyboard setting in use
isWindowsKeySetting=true # Change this based on your setting
findPath="/System/Library/PrivateFrameworks/CoreJapaneseEngine.framework/Versions/A/Resources"
# Retrieve the paths for both KeySetting files
if $isWindowsKeySetting; then
KeySettingPath=$(find $findPath -name "KeySetting_Windows.plist")
else
KeySettingPath=$(find $findPath -name "KeySetting_Default.plist")
fi
@tseijp
tseijp / img.h
Last active February 3, 2024 15:25
// #define USE_MAIN 1
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#ifndef PI
#define PI 3.14159265359
#endif // PI
#ifndef TWO_PI
#define TWO_PI 6.28318530718
import os
import sys
import time
import socket
import argparse
import subprocess
class Socket:
def __init__(self,opt):
self.port= opt.port if opt.port else 7001
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
int verbose=0, query=1;
double func( double t, double x, double v )
{
//return - 0.1 * x;
[
/*ショ-トカット*/
{Shift} 2 |""<{Left} 1>
{Shift} 7 |''<{Left} 1>
{Shift} 8 |()<{Left} 1>
{Shift} [ |{{}{}}<{Left} 1>
{Ctrl} [ |{Space}[<{Space} 2>]{Space}<{Left} 3>
{Ctrl} , |{ひらがな}{全角}{U+0020}{U+003C}={U+0020}
{Ctrl} . |{ひらがな}{全角}{U+0020}={U+003E}{U+0020}
Button b1;
Button b2;
Button b3;
void setup() {
background(0);
size(1600, 1600);
b1= new Button("タイトル1", "リンク1");
b2= new Button("タイトル2", "リンク2");
b3= new Button("タイトル3", "リンク3");
}
<!DOCTYPE html>
<html>
<head>
<!--processing.jsを読み込む-->
<script src="js/processing.js"></script>
<!--#wrapperのサイズを取得してcanvasの幅と高さに指定しcanvasを全画面に-->
<script type="text/javascript">
$(function () {
sizing();
<html>
<head>
<!--processing.jsを読み込む-->
<script src="js/processing.js"></script>
<!DOCTYPE html>
<html lang="ja">
<div class="entry-content">
<p data-height="530" data-theme-id="light" data-slug-hash="QvaPjL" data-default-tab="html,result" data-user="aadebdeb" data-embed-version="2" data-pen-title="shadow by multiple lights" class="codepen">See the Pen <a href="https://codepen.io/aadebdeb/pen/QvaPjL/">shadow by multiple lights</a> by aadebdeb (<a href="http://codepen.io/aadebdeb">@aadebdeb</a>) on <a href="http://codepen.io">CodePen</a>.</p>
<script async src="https://production-assets.codepen.io/assets/embed/ei.js"></script>
</div>
</html>
<!DOCTYPE html>
<html>
<head>
<!--js読み込み-->
<script type="text/javascript" src="http://www.generative-gestaltung.de/1/js/jquery.swfobject.1-0-6.min.js"></script>
<script type="text/javascript" src="http://www.generative-gestaltung.de/1/js/app.js"></script>
<script type="text/javascript">
GD.documentReady = function () {
GD.showVideo({
containerId: 'video_player',