Skip to content

Instantly share code, notes, and snippets.

View ashtonx's full-sized avatar

Jakub Gołębicki ashtonx

View GitHub Profile
@ashtonx
ashtonx / taskWarriorAddDailies.sh
Created September 9, 2021 15:13
personal Task Warrior bash script to add dailies
#!/bin/sh
#variables
defaultDueDate=48h
dailiesTag="+dailies"
add_kanji_grind()
{
tags="$dailiesTag +kanji +jp"
project=japanese
@ashtonx
ashtonx / queue.h
Created May 30, 2021 22:39
queue
#ifndef QUEUE_H
#define QUEUE_H
template <typename T>
class Queue
{
public:
Queue(size_t const &capacity = 100);
~Queue();
@ashtonx
ashtonx / sort-wbfs.py
Created February 20, 2021 02:27
sort wbfs
import os
import subprocess
import shutil
def get_id6(file):
result = subprocess.run(['wit','ID6', file], stdout=subprocess.PIPE)
return result.stdout.decode('utf-8')
def make_new_dir(dir_name):
cwd = os.getcwd();
@ashtonx
ashtonx / wuxiaworld-site-stylus.css
Last active January 19, 2021 07:32
dark wuxiaworld.site stylus style for better reading, based on webnovel reader setup
:root{ /*edit these to change settings*/
/*font size*/
--cfg-font-family:"Merriweather", serif; /*merriweather default*/
--cfg-font-size: 18px; /*18px good on ff linux, windows chromium seems to need 20-22px */
--cfg-font-weight: 400; /*400 default*/
--cfg-line-height: 32.4px; /*32.4px default*/
/*colors*/
--cfg-font-color: #ccc; /*#ccc default*/
@ashtonx
ashtonx / Dark Reader dynamic fixes.css
Last active March 16, 2020 01:01
Dynamic Theme fixes for dark reader
================================
duolingo.com
INVERT
.qLLbC
._2boWj
CSS
._1gz3r{
@ashtonx
ashtonx / __gl_env.txt
Created July 26, 2018 08:51
nvidia __GL_ env variable calls
[ashton@Uroboros Debug]$ grep -n "__GL_" gl.txt
18:libGLX_nvidia.so.0->getenv("__GL_HEAP_ALLOC_LIMIT") = nil
19:libGLX_nvidia.so.0->getenv("__GL_APPLICATION_PROFILE") = nil
20:libGLX_nvidia.so.0->getenv("__GL_APPLICATION_PROFILE_LOG") = nil
21:libGLX_nvidia.so.0->getenv("__GL_MAYA_OPTIMIZE") = nil
27:libGLX_nvidia.so.0->getenv("__GL_FLUSH_CONTROL") = nil
28:libGLX_nvidia.so.0->getenv("__GL_FORCE_DIRECT") = nil
29:libGLX_nvidia.so.0->getenv("__GL_FORCE_INDIRECT") = nil
30:libGLX_nvidia.so.0->getenv(
# - Find Assimp Installation
#
# Users can set the following variables before calling the module:
# ASSIMP_DIR - The preferred installation prefix for searching for ASSIMP. Set by the user.
#
# ASSIMP_ROOT_DIR - the root directory where the installation can be found
# ASSIMP_CXX_FLAGS - extra flags for compilation
# ASSIMP_LINK_FLAGS - extra flags for linking
# ASSIMP_INCLUDE_DIRS - include directories
# ASSIMP_LIBRARY_DIRS - link directories
@ashtonx
ashtonx / while.cpp
Created February 23, 2018 22:02
while loop
while (!glfwWindowShouldClose(window))
{
// per frame logic
// ---------------
float currentFrame = static_cast<float>(glfwGetTime());
deltaTime = currentFrame - lastFrame;
lastFrame = currentFrame;
// input
// -----
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/04/Fill.asm
// Runs an infinite loop that listens to the keyboard input.
// When a key is pressed (any key), the program blackens the screen,
// i.e. writes "black" in every pixel. When no key is pressed, the
// program clears the screen, i.e. writes "white" in every pixel.
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/04/Fill.asm
// Runs an infinite loop that listens to the keyboard input.
// When a key is pressed (any key), the program blackens the screen,
// i.e. writes "black" in every pixel. When no key is pressed, the
// program clears the screen, i.e. writes "white" in every pixel.