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 json | |
import os | |
import subprocess | |
class ComparisonMetric: | |
AE = 'AE' # absolute error count | |
DSSIM = 'DSSIM' # structural dissimilarity index | |
FUZZ = 'FUZZ' # mean color distance | |
MAE = 'MAE' # mean absolute error |
This file has been truncated, but you can view the full file.
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
<Scene> | |
<MaxRecursionDepth>4</MaxRecursionDepth> | |
<IntersectionTestEpsilon>1e-6</IntersectionTestEpsilon> | |
<BackgroundColor>0 0 0</BackgroundColor> | |
<Cameras> | |
<Camera id="1"> | |
<Position>0.0 15.5 20.0</Position> | |
<Gaze>-0.0 -0.612571665435814 -0.7904150521752438</Gaze> | |
<Up>0.0 0.8 -0.6</Up> | |
<NearPlane>-0.8 0.8 -0.45 0.45</NearPlane> |
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
// ==UserScript== | |
// @name Select All Kitchens | |
// @namespace https://www.yemeksepeti.com/ | |
// @version 0.1.0 | |
// @description Adds a "Select All" menu to the Yemeksepeti kitchen selection pop-up. | |
// @author bozbalci | |
// @match https://www.yemeksepeti.com/ | |
// @include /^https?://www\.yemeksepeti\.(com)/.* | |
// @run-at document-end | |
// @grant none |
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
from pprint import pprint | |
def even_to_true(n): | |
return n % 2 == 0 | |
def validate_schema(schema, data): | |
if not (isinstance(schema, dict) and isinstance(data, dict)): | |
raise Exception("both schema and data must be dicts") |
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
fun alotofarguments | |
args | |
arg a | |
arg b | |
arg c | |
arg d | |
arg e | |
arg f | |
arg g | |
arg h |
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
M=type('',(type,),{'__new__':lambda _,__,___, | |
____:type.__new__(_,__,___,{**____,'__add__': | |
lambda _____,______:len(__).__mul__(len(___)) | |
.__add__(______())})});_=type('',(),{"""__g\ | |
etattribute__""":lambda _,__:lambda:type('',( | |
),{})})();__=lambda x: x.__code__.co_argcount | |
___=lambda*C:print(''.join(chr(c()+c()) for c | |
# I'd obfuscate my code in Python rather than | |
in C)) | |
class __________( |
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
(lambda L,G,_,S,d,g,e,I,M,C,i,j, __,___,____,_____,______,_______, | |
________,_________,__________, ___________,____________, | |
_____________,______________, _______________,________________: | |
(lambda s:(G(I(s(L((L((_____, _____________,)),L((______, | |
___________,)),)))),s(L((L(( _______,_________,)),L((____, | |
_____,__________,)),L((_____, ______,_______,)),L((____,____, | |
____________,)),L(( _______________,)),))))(___,G(S,s | |
(L((L((_______________,)),L(( ____,______,________,)),L((_____, | |
_____,________,)),L((_____, _____________,)),L((____,____, | |
______,______,)),L(( _______________,)),))))(s(L((L(( |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/mman.h> | |
#include <unistd.h> | |
int (*create_adder(int add_what))(int) | |
{ | |
char *p = mmap(NULL, 4096, PROT_READ | PROT_WRITE | PROT_EXEC, | |
MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); |
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
#define base00 #100104 | |
! #define base01 #26030A | |
#define base01 #ff1745 | |
#define base02 #450613 | |
#define base03 #520716 | |
#define base04 #ab0f2f | |
#define base05 #b91132 | |
#define base06 #e3143e | |
#define base07 #f71643 | |
#define base08 #7c0b22 |
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
active_targets = [ | |
"bottom-active.xpm", | |
"bottom-left-active.xpm", | |
"bottom-right-active.xpm", | |
"left-active.xpm", | |
"right-active.xpm", | |
"title-1-active.xpm", | |
"title-2-active.xpm", | |
"title-3-active.xpm", | |
"title-4-active.xpm", |
NewerOlder