Skip to content

Instantly share code, notes, and snippets.

View deminoth's full-sized avatar

SangYeob Bono Yu deminoth

View GitHub Profile

Keybase proof

I hereby claim:

  • I am deminoth on github.
  • I am deminoth (https://keybase.io/deminoth) on keybase.
  • I have a public key ASD9EJsqfy4pTbetX8hNLnOd-cN8RjuXbTROBM5gZWtnFwo

To claim this, I am signing this object:

import React from 'react';
const ThemeContext = React.createContext('light');
class App extends React.Component {
render() {
return (
<ThemeContext.Provider value="dark">
<Toolbar />
</ThemeContext.Provider>
import React from "react";
import { createStore } from "redux";
import { Provider, connect } from "react-redux";
function theme(state, action) {
return {
theme: "dark"
};
}
SET @sql = NULL;
SELECT
GROUP_CONCAT(DISTINCT
CONCAT(
'select name, ''',
c.column_name,
''' as word, ',
c.column_name,
' as qty
@deminoth
deminoth / console.log.js
Created August 26, 2015 07:12
immutable.js console.log
(function () {
var _log = console.log;
console.log = function () {
var args = Array.prototype.map.call(arguments, function (arg) {
return typeof arg.toJS === "function" ? arg.toJS() : arg;
});
return _log.apply(console, args);
};
})();
@deminoth
deminoth / gist:6df889c0d5e35b9f4b54
Last active April 1, 2021 14:18
카카오 자바스크립트 SDK 비동기로드 asynchronously load Kakao Javascript SDK
window.kakaoAsyncInit = function() {
Kakao.init('your-javascript-key');
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "https://developers.kakao.com/sdk/js/kakao.min.js";
var done = false;
js.onload = js.onreadystatechange = function() {
@deminoth
deminoth / 0_reuse_code.js
Created June 4, 2014 23:20
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