Skip to content

Instantly share code, notes, and snippets.

View imskojs's full-sized avatar
🎯
Focusing

Seunghoon Ko imskojs

🎯
Focusing
  • Seoul, Korea
View GitHub Profile
@imskojs
imskojs / PreventGhostClick.js
Created December 15, 2018 00:21 — forked from jtangelder/PreventGhostClick.js
PreventGhostClick
/**
* Prevent click events after a touchend.
*
* Inspired/copy-paste from this article of Google by Ryan Fioravanti
* https://developers.google.com/mobile/articles/fast_buttons#ghost
*
* USAGE:
* Prevent the click event for an certain element
* ````
* PreventGhostClick(myElement);
@imskojs
imskojs / normalized.html
Created July 2, 2018 03:22 — forked from scottkellum/normalized.html
pixel normalization
<!doctype html>
<html>
<head>
<!-- Encoding -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"></meta>
@imskojs
imskojs / p2pool
Created January 12, 2018 13:26 — forked from jimeh/p2pool
Quickly hacked together init.d script for p2pool.
#!/bin/sh
### BEGIN INIT INFO
# Provides: p2pool
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: p2pool startup script
# Description: p2pool startup script
### END INIT INFO
@imskojs
imskojs / UbuntuMiner
Created November 2, 2017 09:51 — forked from zcshiner/UbuntuMiner
UbuntuMiner. Command list to build an Ubuntu 14.04 Server with Cuda Toolkit 6.5, driver 352.41, and ccminer.
#!/bin/bash
### Command log to install Cuda Toolkit 6.5, driver 343.22, and ccminer.
## Update the system
sudo apt-get update && sudo apt-get -y dist-upgrade
# All the dependencies for Cuda & ccminer (I think)
sudo apt-get -y install gcc g++ build-essential automake linux-headers-$(uname -r) git gawk libcurl4-openssl-dev libjansson-dev xorg libc++-dev libgmp-dev python-dev
@imskojs
imskojs / st3-ng2-html-highlighting.md
Created September 25, 2016 10:38 — forked from zvuc/st3-ng2-html-highlighting.md
Proper Syntax Highlighting for Angular2 HTML in Sublime Text 3

Fix ng2 attributes not being highlighted like other HTML attributes correctly

  1. Find Sublime Text 3.app in Applications, View Package Contents
  2. Open Contents/MacOS/Packages/HTML.sublime-package (Rename to .zip, unpackage it)
  3. In HTML.sublime-syntax file, add following under tag-event-attribute:
tag-ng-attribute:
  - match: '\s+(([\[\(][a-zA-Z0-9.:-]+[\]\)]|(\[\()[a-zA-Z0-9.:-]+(\)\])|[\*#][a-zA-Z0-9.:-]+)\s*(=)\s*)'
    captures:
      1: meta.attribute-with-value.html