Skip to content

Instantly share code, notes, and snippets.

@Saqoosha
Saqoosha / LGFX_RP2040_3.5_Waveshare.hpp
Created January 29, 2023 11:58
LovyanGFX device config for "3.5inch Touch Display Module for Raspberry Pi Pico" of Waveshare
class LGFX : public lgfx::LGFX_Device
{
lgfx::Panel_ILI9488 _panel_instance;
lgfx::Bus_SPI _bus_instance;
lgfx::Touch_XPT2046 _touch_instance;
public:
LGFX(void)
{
{
<##########################
.SYNOPSIS This script will change the shell of a user from invalid.exe to explorer.exe and swap back
.DESCRIPTION This tool should only be used for a Logitech imaged Zoom room. Running this script on a different system could have an undesriable outcome.
1. Log off the Zoom user account
2. Logon with the ZoomAdmin account
3. Run this Script
4. Log Off the ZoomAdmin account
5. Logon with the Zoom account
6. Once Zoom Rooms start click on the Option button and then exit
7. Make any changes you desire
@Saqoosha
Saqoosha / glfwbgfx.c
Created October 16, 2018 02:51
bgfx + GLFW in C, C++, Go
#include <GLFW/glfw3.h>
#define GLFW_EXPOSE_NATIVE_COCOA
#define GLFW_EXPOSE_NATIVE_NSGL
#include <GLFW/glfw3native.h>
#include <bgfx/c99/bgfx.h>
#include <bgfx/c99/platform.h>
#include <cglm/cglm.h>
#include <stdio.h>
@Saqoosha
Saqoosha / githubhooktoslack.js
Last active August 10, 2022 15:31
Send GitHub wiki update notification to Slack by using AWS Lambda
console.log('Loading function');
var util = require('util');
var url = require('url');
var https = require('https');
var hookURL = "https://hooks.slack.com/services/............";
var postMessage = function(message, callback) {
var body = JSON.stringify(message);
var fs = require('fs')
var data = JSON.parse(fs.readFileSync('keyframes.json'))
for (var key in data.user.property) {
console.log(key)
}
// console.log(data.user.property.position)
var position = data.user.property.position
var vertices = []
data.user.property.face_vertices.forEach((v) => {
var fs = require('fs')
var data = JSON.parse(fs.readFileSync('keyframes.json'))
for (var key in data.user.property) {
console.log(key)
}
// console.log(data.user.property.position)
var position = data.user.property.position
var vertices = []
@Saqoosha
Saqoosha / RomajiRule_Default.txt
Last active February 28, 2020 04:16
El Capitan の日本語入力で DvorakJP ref: http://qiita.com/Saqoosha/items/83622981fe1fec6bb5e0
#
#
#
#
- ー 1
a あ 1
i い
u う 1
@Saqoosha
Saqoosha / file0.txt
Created August 21, 2015 16:32
OpenType フォントのカーニング情報をぶっこぬく ref: http://qiita.com/Saqoosha/items/8a9bb825e02db770408e
(OTF
(OffsetTable
(sfnt-version 20308.21583)
(numTables 25)
(searchRange 256)
(enterSelector 4)
(rangeShift 384))
(Table 0 (tag "BASE" #x42415345)
(checkSum 6962C672) (offset #x00000430) (length: #x000001C8))
(Table 1 (tag "CFF " #x43464620)
import numpy as np
import scipy.ndimage as nd
import PIL.Image
from google.protobuf import text_format
import caffe
model_path = 'caffe/models/finetune_flickr_style/' # substitute your path here
net_fn = model_path + 'deploy.prototxt'
param_fn = model_path + 'finetune_flickr_style.caffemodel'