This file contains hidden or 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
#version 430 | |
uniform float opacity; | |
uniform bool invert_color; | |
uniform sampler2D tex; | |
in vec2 texcoord; // texture coordinate of the fragment | |
const float pow_cbrt = 1./3; | |
vec3 rgb2oklab(vec3 rgb) { | |
vec3 srgb = rgb / 12.92; | |
for (int i = 0; i < 3; i++) { |
This file contains hidden or 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
{ | |
"「":"\"", | |
"」":"\"", | |
"『":"\"", | |
"』":"\"", | |
"―":"-" | |
} |
This file contains hidden or 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
// Build with: gcc -o plugin.so plugin.c `pkg-config --cflags mpv` -shared -fPIC | |
// Warning: do not link against libmpv.so! Read: | |
// https://mpv.io/manual/master/#linkage-to-libmpv | |
// The pkg-config call is for adding the proper client.h include path. | |
#include <stddef.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> |
This file contains hidden or 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 | |
import json | |
import os | |
import sys | |
from string import Template | |
from urllib.parse import urljoin | |
import subprocess | |
import time | |
import pycurl |
This file contains hidden or 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 the following lines in your conky .conf | |
# important to use execpi to get the colors from the scripts right | |
# ${color e43526}COVID-19 UPDATE:${color} | |
# ${execpi 60 python ~/scripts/corona.py} | |
import requests | |
import re | |
from bs4 import BeautifulSoup | |
COLORS = { |
This file contains hidden or 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 math | |
import random | |
import time | |
def fun(x,a1=100,a2=50,a3=0): | |
y= math.fabs(x*(a2-x)*(a1-x)/(x+1) +random.random()*x*x*(100-x)/(x*x+2*x+1)) | |
return y | |
def get_xy(num,a,b,c): | |
x=list(range(num)) |
This file contains hidden or 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
(defun c:LoadMyVBAs() | |
(vl-vbaload "F:/Gaurav/civil3D/DrawEquation.dvb") | |
(vl-vbaload "F:/Gaurav/civil3D/Area_multiple.dvb") | |
) | |
(defun c:SlimLayers() | |
(vl-vbarun "SlimLayers") | |
) | |
(defun c:DrawEquation() | |
(vl-vbarun "drawEquation") | |
) |
This file contains hidden or 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
Public Sub SeekMeaning() | |
Dim appIE As Object | |
Set appIE = CreateObject("internetexplorer.application") | |
On Error GoTo en | |
Dim seStr As String | |
seStr = Replace(ActiveCell.Value, " ", "-") | |
With appIE | |
.Navigate "https://www.dictionary.com/browse/" + seStr | |
.Visible = False | |
End With |
NewerOlder