Skip to content

Instantly share code, notes, and snippets.

View wotori's full-sized avatar
🛠️
Ship or Die

Wotori Movako wotori

🛠️
Ship or Die
View GitHub Profile
// Fill out your copyright notice in the Description page of Project Settings.
#include "LoaderBPFunctionLibrary.h"
#include "RuntimeMeshLoader.h"
#include <assimp/Importer.hpp> // C++ importer interface
#include <assimp/scene.h> // Output data structure
#include <assimp/postprocess.h> // Post processing flags
void FindMeshInfo(const aiScene* scene, aiNode* node, FReturnedData& result)
{
@sowwic
sowwic / Instructions.txt
Last active January 12, 2022 12:45
Ubuntu 20.04 - Maya 2020 installation
1)Get the packages required for converting the rpm package.
sudo apt-get install alien dpkg-dev debhelper build-essential zlib1g-dev
2)Get and install libXp6.
sudo add-apt-repository ppa:zeehio/libxp
sudo apt-get update
sudo apt-get install libxp6
3) Extract the contents of the Maya installation package and change directory to its install/Packages directory.
@kogcyc
kogcyc / heroku.sh
Created August 14, 2017 22:45
how to install the heroku cli on raspberry pi
wget https://cli-assets.heroku.com/branches/stable/heroku-linux-arm.tar.gz
mkdir -p /usr/local/lib /usr/local/bin
sudo tar -xvzf heroku-linux-arm.tar.gz -C /usr/local/lib
sudo ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku
@octalmage
octalmage / keplr.js gist
Last active September 19, 2022 16:49 — forked from clevinson/keplr.js gist
DO NOT RUN THIS
{
"chainId": "phoenix-1",
"chainName": "Terra 2.0",
"rpc": "https://terra-rpc.polkachu.com/",
"rest": "https://phoenix-lcd.terra.dev/",
"stakeCurrency": {
"coinDenom": "LUNA",
"coinMinimalDenom": "uluna",
"coinDecimals": 6,
"coinGeckoId": "terra-luna"
@reuven
reuven / cities.json
Created July 24, 2017 18:54 — forked from Miserlou/cities.json
1000 Largest US Cities By Population With Geographic Coordinates, in JSON
[
{
"city": "New York",
"growth_from_2000_to_2013": "4.8%",
"latitude": 40.7127837,
"longitude": -74.0059413,
"population": "8405837",
"rank": "1",
"state": "New York"
},
@stevedylandev
stevedylandev / unpins.js
Last active December 20, 2023 16:57
This script will unpin all files from your Pinata account! You can alter the PIN_QUERY to adjust it if you only want to delete a range of files
const PINATA_JWT = 'Bearer YOUR_JWT_HERE'
const PIN_QUERY = `https://api.pinata.cloud/data/pinList?status=pinned&pageLimit=1000&includeCount=false`
const fetch = require('node-fetch')
const wait = (milliseconds) => {
return new Promise((resolve) => {
setTimeout(resolve, milliseconds);
});
};

Ubuntu20.04 Wine 6.0 微信中文显示方块/方框

如果希望在Ubuntu使用Windows版微信:

  1. 安装 Wine sudo apt-get install wine
  2. 先把环境改了省事:
    $ export WINEARCH=win32
    $ export WINEPREFIX=/home/qinyu/Wine/WeChat
  3. 创建 Wine Bottle
@uliang
uliang / states.py
Last active February 8, 2024 23:03
Implementation of State Design Pattern in python
"""
Simple implementation of a finite state machine.
Author: Tang U-Liang
Date: 2 Oct 2020
"""
import attr
from enum import Enum
import inspect
@mick-t
mick-t / gist:85fc40d1acaf5e98cad9
Created June 18, 2015 20:19
Python-LDAP: find the groups a user is a member of.
LDAP_SERVER = "ldaps://my-ldap-server.com/"
LDAP_BASE = "dc=my-ldap-server,dc=com"
def users_ldap_groups(uid):
""" Returns a list of the groups that the uid is a member of.
Returns False if it can't find the uid or throws an exception.
It's up to the caller to ensure that the UID they're using exists!
"""
logger.debug("uid: ", uid)
@EderSantana
EderSantana / CATCH_Keras_RL.md
Last active June 22, 2024 17:07
Keras plays catch - a single file Reinforcement Learning example