Skip to content

Instantly share code, notes, and snippets.

@yoshimax
yoshimax / .htaccess
Created April 27, 2021 15:21
Vue + Laravel with sanctum (use only api) Separate Put Vue Files on Laravel Public Folder How Setup Vue Router Permalink
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#!/usr/bin/env python
# WS server example that synchronizes state across clients
import asyncio
import json
import logging
import websockets
from asyncio_mqtt import Client, MqttError
@yoshimax
yoshimax / mqtt_websocket_x2_proxy.py
Last active February 5, 2021 15:15
mqtt_websocket_x2_proxy.py
#!usr/bin/env python3
# -*- coding: utf-8 -*-
# python 3.7.3 can work others will can't ;)
import asyncio
import logging
from asyncio_mqtt import Client, MqttError
import websockets
#!usr/bin/env python3
# -*- coding: utf-8 -*-
import asyncio
import logging
from asyncio_mqtt import Client, MqttError
import websockets
ws = ""
logger = logging.getLogger(__name__)
#include <CAN.h>
// https://github.com/sandeepmistry/arduino-CAN
// For DO IT Dev On board LED
// MCP2551 VCC5V-DOITDEVBoaredVin CTX-5 CRX-5
#include "freertos/task.h"
#define ONBLED 2 // For DO IT Dev On board LED
#define ON 1
@yoshimax
yoshimax / 1_Boxes.md
Last active March 10, 2018 17:01
Boxes.glsl
@yoshimax
yoshimax / Circles4.md
Created March 10, 2018 16:44
Circles4.glsl
@yoshimax
yoshimax / Circles2.md
Last active March 10, 2018 16:31
Circles2.glsl
@yoshimax
yoshimax / 01_Circles.md
Last active March 10, 2018 15:05
Circles.glsl
@yoshimax
yoshimax / TriLattice.glsl
Last active March 9, 2018 22:05
TriLattice
#version 150
uniform float time;
uniform vec2 resolution;
out vec4 fragColor;
float rand(vec2 uv)
{
return fract(sin(dot(uv, vec2(12.9898, 78.233))) * 43758.5453);
}