Skip to content

Instantly share code, notes, and snippets.

View grhbit's full-sized avatar
🎯
Focusing

Gwon Seonggwang grhbit

🎯
Focusing
  • Tokyo, Japan
View GitHub Profile
@grhbit
grhbit / main.cpp
Last active July 17, 2019 15:56
자료구조 6번째 과제
#include <iostream>
#include <sys/time.h>
#include "sort.hpp"
#include "test-gen.hpp"
int main(int argc, char **argv) {
srand(time(NULL));
const int iteration = 1;
const int n = 500000;
int **arr = new int* [iteration];
using System;
using System.Collections.Generic;
namespace luunate
{
public static class StringUtils
{
public static string Join(this IEnumerable<string> values, string separator = " ") {
return string.Join (separator.IfNull(" "), values);
}
@grhbit
grhbit / instargram-follower-donwload.js
Created March 28, 2018 16:00
Downloads Instagram follower list as CSV format.
(() => {
let req = new XMLHttpRequest(),
page = _sharedData.entry_data.ProfilePage,
user = page[page.length-1].graphql.user,
url = `/graphql/query/?query_hash=37479f2b8209594dde7facb0d904896a&variables={"id":"${user.id}","first":${user.edge_followed_by.count}}`;
if (!confirm(`${user.full_name}?`))
return;
req.onloadend = () => {
@grhbit
grhbit / .eslintrc.js
Created July 29, 2019 09:46
eslint configuration file
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
},
extends: [
'airbnb',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',

Keybase proof

I hereby claim:

  • I am grhbit on github.
  • I am arhbit (https://keybase.io/arhbit) on keybase.
  • I have a public key ASBzqddnNyDPAyh2tSeitgNiiqf8-idcmpNU40cBTveZNQo

To claim this, I am signing this object:

@grhbit
grhbit / 24-bit-color.sh
Last active July 10, 2024 18:54 — forked from lifepillar/24-bit-color.sh
Test 24 bit colors in terminals
#!/bin/bash
#
# This file echoes a bunch of 24-bit color codes
# to the terminal to demonstrate its functionality.
# The foreground escape sequence is ^[38;2;<r>;<g>;<b>m
# The background escape sequence is ^[48;2;<r>;<g>;<b>m
# <r> <g> <b> range from 0 to 255 inclusive.
# The escape sequence ^[0m returns output to default
setBackgroundColor()