Skip to content

Instantly share code, notes, and snippets.

View chitoku-k's full-sized avatar
๐Ÿฑ
Becoming a cat

Chitoku chitoku-k

๐Ÿฑ
Becoming a cat
View GitHub Profile
@0V
0V / ๅฏพ็งฐๅฎš่ฆ.cs
Last active October 17, 2015 16:28
OpenCvSharp ใงๅฏพ็งฐๅฎš่ฆใ€‚ ไพๅญ˜้–ขไฟ‚ใฏ OpenCvSharp ใฎใฟ
using System;
using System.Collections.Generic;
using OpenCvSharp.CPlusPlus;
using OpenCvSharp;
namespace OpenCvSharpSomethings
{
class Program
{
static Mat[] rotMat;
@entropiae
entropiae / fix_git_sslread_9806.sh
Last active February 3, 2022 23:32
git: how to solve "SSLRead() return error -9806" in OSX using brew
$ brew remove git
$ brew remove curl
$ brew install openssl
$ brew install --with-openssl curl
$ brew install --with-brewed-curl --with-brewed-openssl git
@kb10uy
kb10uy / number-ls.sh
Created December 19, 2015 17:43
lsใฎrwxใ‚’8้€ฒ่กจ็คบใซใ™ใ‚‹ใ‚ทใ‚งใƒซ้–ขๆ•ฐใงใ™
function lsn() {
ls $* --color=always \
| sed -e 's/^-/f/g' \
| sed -e 's/--x/1/g' \
| sed -e 's/-w-/2/g' \
| sed -e 's/-wx/3/g' \
| sed -e 's/r--/4/g' \
| sed -e 's/r-x/5/g' \
| sed -e 's/rw-/6/g' \
| sed -e 's/rwx/7/g' \
@kb10uy
kb10uy / extreme.cpp
Created February 3, 2016 16:10
ใจใ‚Šใ‚ใˆใšใƒกใƒขใƒชใ‚’ๅŸ‹ใ‚ใŸใ„ไบบ็”จ
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#define BLOCK_SIZE 1048576U
uint32_t xor128(void);
int main(void) {
uint32_t count = 0;
<?php
$dom = new DOMDocument();
@$dom->loadHTML(file_get_contents('http://user.keio.ac.jp/~rhotta/hellog/'));
$through = (new DOMXPath($dom))->query('//div[@id="links"]//a[@href="2009-06-20-1.html"]');
if ($through->length === 1) {
echo "ไปŠๆ—ฅใฎthrough: {$through[0]->nodeValue}\n";
}
@dmail
dmail / url.js
Last active January 5, 2024 11:09
URL parts naming. Inspired from web browsers API (new URL(), window.location) and rfc3986.
/*
href
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
origin โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ authority โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ โ”‚ host resource
โ”‚ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ โ”‚ hostname โ”‚ pathname โ”‚ โ”‚
@arnars
arnars / Gatsby v2 using Internet Explorer.md
Last active February 15, 2021 08:01
Tips for making Gatsby v2 working with IE / Internet Explorer

Making Gatsby work with Internet Explorer 10 and 11

I created this gist in order to help myself and others keep track of tips and tricks in order to make Gatsby v2 play nicely with Internet Explorer 10 and 11.

This is experience based. Please share your experiences when you have a solution to a problem.

External compilation of modules

If you suspect that an es6-based module is breaking your app, then try to add gatsby-plugin-compile-es6-packages and include the package as one of the modules.

@hexium310
hexium310 / group-by-range.zsh
Last active June 9, 2021 16:48
group-by-range
group-by-range() {
setopt LOCAL_OPTIONS EXTENDED_GLOB
local value
local values=(${(ps: :)1})
local separator=${2--}
local tmp_separator=,
local result=()
local positives=(${(no)${(M)values:#[[:digit:]]##}})
local negatives=(${(nO)${(M)values:#-[[:digit:]]##}})