Skip to content

Instantly share code, notes, and snippets.

/usr/lib/ if1live

Block or report user

Report or block if1live

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
if1live / httpclient_unity_sample.cs
Created Jan 15, 2019
C# HttpClient + Unity + GET + json body
View httpclient_unity_sample.cs
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Json;
using System.Text;
using UnityEngine;
using UnityEngine.Networking;
using System.Net.Http;
using System.Net;
if1live / httpclient_sample.cs
Created Jan 15, 2019
c# HttpClient + GET + json body
View httpclient_sample.cs
using System;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Json;
using System.Text;
using System.Threading.Tasks;
namespace httpclient
View hangul_number.js
오늘의 코딩 퀴즈
숫자를 기수로 변환하기
1 =>
73 => 칠십삼
598 => 오백구십팔
1920 => 일천구백이십
View timezone.sql
if1live / sample.ts
Created Nov 8, 2018
indexedDBShim + dexie + typescript test
View sample.ts
const setGlobalVars = require('indexeddbshim');
(global as any).window = global; // We'll allow ourselves to use `window.indexedDB` or `indexedDB` as a global
setGlobalVars(); // See signature below
(window.indexedDB as any).__setConfig({
checkOrigin: false,
const Dexie = require('dexie');
var db = new Dexie('friend_database');
View NoLock.cpp
//to use standard input/output
#include <iostream>
//to use ofstream
#include <fstream>
//to use thread class
#include <thread>
//to use mutex lock
#include <mutex>
//to use vector
#include <vector>
if1live / localization.js
Last active Mar 23, 2018
json localication example
View localization.js
var type_a = {
"questions": [
"id": 1,
"order": 1,
"correct_answer": 1,
"question": {
"en": "[EN] 2017년 트위터에 140자였던 글자 제한이 어떻게 되었는가?",
"th": "[TH] 2017년 트위터에 140자였던 글자 제한이 어떻게 되었는가?"
if1live / loop.cpp
Last active Oct 14, 2017
use stack address as loop ounter
View loop.cpp
#include <stdio.h>
void execute(int n, int total) {
printf("loop count : %d/%d\n", n, total);
int loop_core(int *root_addr, int *prev_addr, int num) {
int base_value = 0;
if1live /
Created Oct 5, 2017
Enable/Disable/Toggle Touchpad (For Acer R11 Chromebook)
XINPUT_ID=`xinput list|grep Touchpad|awk '{print $5}'|cut --delimiter="=" -f 2`
function enable_touchpad() {
#/usr/bin/synclient TouchpadOff=0
xinput --enable $XINPUT_ID
echo "touchpad_enable\t:`date`" >> $LOG_FILE
if1live / Twitter Cramming.user.js
Last active Nov 10, 2017 — forked from Prof9/
Force enable cramming (280 character tweets) on Twitter. NOTE: Stops working when you switch pages, refresh to fix.
View Twitter Cramming.user.js
// ==UserScript==
// @name Twitter Cramming
// @description Force enable cramming (280 character tweets) on Twitter
// @author Prof. 9
// @version 0.2
// @match*
// @run-at document-idle
// @namespace prof9.twittercramming
// ==/UserScript==
You can’t perform that action at this time.