Skip to content

Instantly share code, notes, and snippets.

View yat1ma30's full-sized avatar
🐕
On vacation

yat1ma30 yat1ma30

🐕
On vacation
View GitHub Profile
@yat1ma30
yat1ma30 / fzf_history.lua
Created March 11, 2024 01:30 — forked from rupeshtr78/fzf_history.lua
Windows FZF history search with cmder ,clink
-- fzf clink history search
-- update cmder\vendor\clink >= clink -- version = 1.1.44
-- install fzf choco install fzf
-- add the fzf_history.lua to cmder\config folder
-- add below key binding to _inputrc use "clink info" to find inputrc path
-- M-x: "luafunc:fzf_history" #Alt x
-- Might have to adjust your regex in line 38 39 based on your settings
-- reference https://chrisant996.github.io/clink/clink.html
settings.add("fzf.height", "40%", "Height to use for the --height flag")
@yat1ma30
yat1ma30 / auth.go
Created January 15, 2024 16:34 — forked from zhelezkov/auth.go
jito auth
package jito
import (
"context"
mev "jito-bot/pkg/jito/gen"
"github.com/gagliardetto/solana-go"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
@yat1ma30
yat1ma30 / noty.py
Created November 12, 2022 14:03 — forked from fnx4/noty.py
monitor windows notifications
import os
import sqlite3
import time
from bs4 import BeautifulSoup
ids = set()
user = os.environ['USERPROFILE'].replace("\\", "/")
adr = u"file:" + user + u"/AppData/Local/Microsoft/Windows/Notifications/wpndatabase.db?mode=ro"
const solanaWeb3 = require('@solana/web3.js');
const rpc = "https://ssc-dao.genesysgo.net";
const magicEdenPubKey = new solanaWeb3.PublicKey("M2mx93ekt1fmXSVkTrUL9xVFHkmME8HTUi5Cyc5aF7K")
const solanaConnection = new solanaWeb3.Connection(rpc, 'confirmed');
const runMagicEdenParser = async () => {
// get latest 1000 transactions happening on Magic Eden
const magicEdenSignatures = await solanaConnection.getSignaturesForAddress(magicEdenPubKey);
@yat1ma30
yat1ma30 / SyncGameObjectWithEntity.cs
Created April 20, 2022 04:46 — forked from tsubaki/SyncGameObjectWithEntity.cs
GameObjectを破棄するとEntityも破棄される。もしくはその逆
using Unity.Entities;
using Unity.Transforms;
using UnityEngine;
/// <summary>
/// GameObjectを破棄する時、紐付いているEntityを破棄する。
/// </summary>
[RequireComponent(typeof(ConvertToEntity))]
[DisallowMultipleComponent]
[RequiresEntityConversion]
@yat1ma30
yat1ma30 / GlowLevels.shader
Created March 17, 2022 23:23 — forked from jzayed/GlowLevels.shader
Glow Levels Shader
Shader "Sprites/GlowLevels"
{
Properties
{
[PerRendererData] _MainTex("Sprite Texture", 2D) = "white" {}
_AlphaIntensity_Fade_1("_AlphaIntensity_Fade_1", Range(0, 3)) = 1
_TintRGBA_Color_1("_TintRGBA_Color_1", COLOR) = (1,1,1,1)
_AlphaIntensity_Fade_2("_AlphaIntensity_Fade_2", Range(0, 3)) = 1
_TintRGBA_Color_2("_TintRGBA_Color_2", COLOR) = (1,1,1,1)
@yat1ma30
yat1ma30 / wave.cs
Last active May 2, 2018 14:33
Perlin noise in Unity (from this tutorial https://youtu.be/f6cAAjMfPs8) // modified
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GenerateWaveScript : MonoBehaviour {
[Range(0.1f, 20.0f)]
public float heightScale = 5.0f;
[Range(0.1f, 40.0f)]
@yat1ma30
yat1ma30 / FollowGround.js
Created May 1, 2018 14:03 — forked from moyashipan/FollowGround.js
Unity3D: Function to following the ground
// You should change the center of this gameObject's mesh from default value (0,0,0).
// Because this script put its point to the contact point with the ground.
// And "use gravity" must be FALSE.
// Call HitTestWithRoad() from Update()
public var distance:float = 2.0;
public var smoothRatio:float = 0.2;
function HitTestWithRoad() {
@yat1ma30
yat1ma30 / 0_reuse_code.js
Created July 16, 2017 13:28
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@yat1ma30
yat1ma30 / google_finance_intraday.py
Created June 24, 2017 22:31 — forked from lebedov/google_finance_intraday.py
Retrieve intraday stock data from Google Finance.
#!/usr/bin/env python
"""
Retrieve intraday stock data from Google Finance.
"""
import csv
import datetime
import re
import pandas as pd