Skip to content

Instantly share code, notes, and snippets.

View Gnimuc's full-sized avatar
🍤

Yupei Qi Gnimuc

🍤
  • Tokyo
  • 07:01 (UTC +09:00)
  • X @Gnimuc
View GitHub Profile
@Gnimuc
Gnimuc / InfiniteGrid.shader
Created January 20, 2024 05:11 — forked from bgolus/InfiniteGrid.shader
Infinite Grid shader with procedural grid with configurable divisions and major and minor lines markings.
Shader "Unlit/InfiniteGrid"
{
Properties
{
[Toggle] _WorldUV ("Use World Space UV", Float) = 1.0
_GridScale ("Grid Scale", Float) = 1.0
_GridBias ("Grid Bias", Float) = 0.5
_GridDiv ("Grid Divisions", Float) = 10.0
_BaseColor ("Base Color", Color) = (0,0,0,1)
_LineColor ("Line Color", Color) = (1,1,1,1)
@Gnimuc
Gnimuc / github-clear-notifications.py
Created June 20, 2023 11:41 — forked from airtower-luna/github-clear-notifications.py
Mark GitHub notifications as read
import json
import os
import requests
from datetime import datetime, timezone
NOTIFICATIONS = 'https://api.github.com/notifications'
token = os.environ['GH_TOKEN']
s = requests.Session()
s.headers.update({
➜  ~ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.8.0-beta3 (2022-03-29)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/ |
@Gnimuc
Gnimuc / xxx.ps1
Last active April 25, 2022 08:04
param (
[string]$destiny = "../folder",
[string]$prefix = "./"
)
foreach ($i in Get-ChildItem -Path $prefix -Recurse)
{
Get-Content "input.txt" | Foreach-Object{
if ($i.Name -match "^$_.*[a-zA-Z]{3}$")
julia> using LLVM
julia> IR = raw"""
@_ZN5julia4var1E = constant i64 1, align 8
declare i32 @__cxa_atexit(void (i8*)*, i8*, i8*)
@__dso_handle = external hidden global i8
define dso_local i64 @_Z4foo1v() #0 {
entry:
module LibExif
using libexif_jll
mutable struct _ExifContentPrivate end
const ExifContentPrivate = _ExifContentPrivate
struct _ExifContent
entries::Ptr{Ptr{Cvoid}} # entries::Ptr{Ptr{ExifEntry}}
@Gnimuc
Gnimuc / console.c
Created September 7, 2020 05:29 — forked from durango/console.c
Basic gamepad controlled UI
/*
Copyright (c) 2016 Micha Mettke
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
module LibGnuastro
using Gnuastro_jll
export Gnuastro_jll
using CEnum
const Ctm = Base.Libc.TmStruct
const Ctime_t = UInt
const Cclock_t = UInt

Benchmark Report for Hungarian

Job Properties

  • Time of benchmarks:
    • Target: 4 Mar 2020 - 08:36
    • Baseline: 4 Mar 2020 - 08:39
  • Package commits:
    • Target: cb09cd
    • Baseline: e532c3
  • Julia commits:
# This script is not an active part of the package.
# It uses Clang.jl package to parse Sundials C headers and generate
# Julia wrapper for Sundials API.
#
# To run the script from Julia console:
# include(joinpath(Pkg.dir("Sundials"), "src", "wrap_sundials.jl"));
using Clang
# `outpath` specifies, where the julian wrappers would be generated.