Skip to content

Instantly share code, notes, and snippets.

@eunjae-lee
eunjae-lee / gist:3180732
Created July 26, 2012 07:22
HTML5 Basic Snippet
<!DOCTYPE html>
<html lang="ko">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<meta name="author" content="" />
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width" />
<title></title>
<link href="css/style.css" rel="stylesheet" />
</head>
@eunjae-lee
eunjae-lee / netlify.txt
Created May 12, 2020 21:55
Deploy time comparison
11:43:30 PM: Build ready to start
11:43:32 PM: build-image version: 6dfe19d15f524c85d6f9bf7df9fb30b0a9f0a61a
11:43:32 PM: build-image tag: v3.3.10
11:43:32 PM: buildbot version: 6bb3f784302b4ad90de13035b247a363a8bee34a
11:43:32 PM: Fetching cached dependencies
11:43:33 PM: Starting to download cache of 305.6MB
11:43:44 PM: Finished downloading cache in 11.554511126s
11:43:44 PM: Starting to extract cache
11:43:58 PM: Finished extracting cache in 14.378192778s
11:43:58 PM: Finished fetching cache in 26.017023135s
@eunjae-lee
eunjae-lee / script.js
Created May 8, 2020 13:51
attestation
function fill(selector, value) {
document.querySelector(selector).value = value;
}
function fillForm({
firstName,
lastName,
birthDate,
birthPlace,
address,
@eunjae-lee
eunjae-lee / README.md
Created April 8, 2020 15:17
vue ssr testing with serverPrefetch

renderToString in serverPrefetch

// Search.vue

<template>
  <div>
    <h1>Search</h1>
    <search-main :index-name="indexName" />
 
@eunjae-lee
eunjae-lee / .rubocop.yml
Created May 5, 2018 09:59
Default Rubocop configuration
AllCops:
Exclude:
- "db/schema.rb"
- "node_modules/**/*"
- "tmp/**/*"
- "vendor/**/*"
Documentation:
Enabled: false
Metrics/LineLength:
Max: 100
@eunjae-lee
eunjae-lee / gist:3793233
Created September 27, 2012 09:59
Get Html5 Video Url of Youtube
url = document.getElementsByTagName('video')[0].src
console.log(url);
@eunjae-lee
eunjae-lee / 0_reuse_code.js
Created July 13, 2017 14:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@eunjae-lee
eunjae-lee / gist:3793227
Created September 27, 2012 09:58
Get subtitle from Youtube as SMI format
var smi = [];
smi.push("<SAMI><BODY>");
$('#transcript-scrollbox .caption-line').map(function (idx, item) {
var time = parseInt(($(item).attr('data-time') - 0)*1000);
var text = $('.caption-line-text', $(item)).html()
smi.push("<SYNC Start=" + time + "><P Class=ENCC>" + text + "\n");
});
smi.push("</BODY></SAMI>");
public static String generateDeviceUniqueId() {
Context context = WithApplication.getInstance().getApplicationContext();
final TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
final String tmDevice, tmSerial, androidId;
tmDevice = "" + tm.getDeviceId();
tmSerial = "" + tm.getSimSerialNumber();
androidId = "" + android.provider.Settings.Secure.getString(context.getContentResolver(),
android.provider.Settings.Secure.ANDROID_ID);
function openTwitterShare() {
var msg = ".......";
window.open(
'https://twitter.com/intent/tweet?source=webclient&text='+encodeURIComponent(msg),
'twitter',
'width=626,height=330');
}
function openFacebookShare() {
var url = "........";