Skip to content

Instantly share code, notes, and snippets.

View gtkatakura's full-sized avatar

gtkatakura

View GitHub Profile
using Emgu.CV;
using Emgu.CV.CvEnum;
using Emgu.CV.Structure;
using Emgu.CV.UI;
using System.Drawing;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
/*
const Y = le => {
const rec = (...args) => le(l)(...args);
return rec;
};
*/
const Y = le => (f => f(f))(f => le(x => f(f)(x)));
const fibonacci = Y(fib => n => n <= 2 ? 1 : fib(n - 1) + fib(n - 2));
@gtkatakura
gtkatakura / boxstarter
Last active March 24, 2023 16:36
Boxstarter - Windows 10
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
cinst googlechrome -y --ignore-checksums
cinst winrar -y --ignore-checksums
cinst 7zip.install -y --ignore-checksums
cinst vlc -y --ignore-checksums
cinst spotify -y --ignore-checksums
cinst discord -y --ignore-checksums
@gtkatakura
gtkatakura / bubble-grid-2017.css
Created November 15, 2017 04:26 — forked from OviOvocny/bubble-grid-2017.css
Modern impractical stylesheet for old-style AniList lists.
{ANILIST-COVERS=LRG}
{ANILIST-POPUP}
body {
background-color: hsl(217, 23%, 16%);
}
/**/
{ANILIST-COVERS=LRG}
{ANILIST-POPUP}
body {
background: #222;
}
.list_wrapper {
margin-left: 0;
max-width: 100%;
@gtkatakura
gtkatakura / CardLitev45.css
Created November 15, 2017 04:26 — forked from OviOvocny/CardLitev45.css
Superovoce is at it again!
/* ANILIST MODIFIERS */
{ANILIST-COVERS=LRG}
/* ACTUAL CASCADING STYLE SHEETS -- Explore it all to find DISABLED FEATURES you might want enabled (or not, what do I know) */
@import "http://fonts.googleapis.com/css?family=Maven+Pro"; /* Custom font, feel free to delete if you don't want it */
body {
background-color: #333;
#container-main {perspective: 1px; height: 100vh; margin-left: -100px; padding-left: 150px; overflow-x: hidden; overflow-y: auto;}
#container-main::before {
content: "";
display: block;
width: 100%;
margin-left: -100px;
position: absolute;
background: url(http://40.media.tumblr.com/fbba87d327660462c8e834e164c526ca/tumblr_mzdgx16SIq1qfu9ibo3_540.jpg) top;
@gtkatakura
gtkatakura / toResponseBy.js
Created March 16, 2018 03:06 — forked from gtkatakura-bysoft/toResponseBy.js
lodash/fp + mapValues + toResponseBy = toMovie
import _ from 'lodash/fp'
const response = {
"Title": "Pulp Fiction",
"Year": "1994",
"Rated": "R",
"Released": "14 Oct 1994",
"Runtime": "154 min",
"Genre": "Crime, Drama",
"Director": "Quentin Tarantino",
var GTK = func => (...args) => {
let result;
const self = (...args) => result(...args);
result = func(self)(...args);
return result;
}
var applyMiddlewares = GTK(enhancedDispatch => (middlewares, dispatch, getState) => {
@gtkatakura
gtkatakura / curry-typescript.ts
Created May 6, 2018 18:13
TypeScript + Curry
type ThemeColor = string;
type Theme = { id: number, color: ThemeColor }
type State = { themes?: [Theme] }
interface CurriedFunction1<T1, R> {
(t1: T1): R;
}
interface CurriedFunction2<T1, T2, R> {
(t1: T1): CurriedFunction1<T2, R>;