This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jito | |
import ( | |
"context" | |
mev "jito-bot/pkg/jito/gen" | |
"github.com/gagliardetto/solana-go" | |
"google.golang.org/grpc" | |
"google.golang.org/grpc/credentials" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Unity.Entities; | |
using Unity.Transforms; | |
using UnityEngine; | |
/// <summary> | |
/// GameObjectを破棄する時、紐付いているEntityを破棄する。 | |
/// </summary> | |
[RequireComponent(typeof(ConvertToEntity))] | |
[DisallowMultipleComponent] | |
[RequiresEntityConversion] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Retrieve intraday stock data from Google Finance. | |
""" | |
import csv | |
import datetime | |
import re | |
import pandas as pd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Get YouTube ID from various YouTube URL | |
* @author: takien | |
* @url: http://takien.com | |
* For PHP YouTube parser, go here http://takien.com/864 | |
*/ | |
function YouTubeGetID(url){ | |
var ID = ''; | |
url = url.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/); |
NewerOlder