Skip to content

Instantly share code, notes, and snippets.


Eunkwang Shin gracefullight

Block or report user

Report or block gracefullight

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
View 네이버TV 카카오TV 광고 차단
# lunamoth 네이버TV 카카오TV
davejamesmiller /
Last active Apr 1, 2020
Laravel's Dependency Injection Container in Depth

Laravel's Dependency Injection Container in Depth

Translations: Korean (by Yongwoo Lee)

Laravel has a powerful Inversion of Control (IoC) / Dependency Injection (DI) Container. Unfortunately the official documentation doesn't cover all of the available functionality, so I decided to experiment with it and document it for myself. The following is based on Laravel 5.4.26 - other versions may vary.

Introduction to Dependency Injection

I won't attempt to explain the principles behind DI / IoC here - if you're not familiar with them you might want to read What is Dependency Injection? by Fabien Potencier (creator of the Symfony framework).

View Unable to load script from assets ''
create assets folder inside android/app/src/main if not exist
react-native bundle --platform android --dev false --entry-file --bundle-output android/app/src/main/assets/ --assets-dest android/app/src/main/res
react-native run-android
slitayem /
Last active Mar 19, 2018
Mongodb 3.x cheat sheet

Note: Tested on mongodb 3.4.1

Creating Collections, Documents, Indexes

See: MongoDB CRUD Operations

Command Description
db.createCollection("movies") Explicitly create a collection
mix5003 / LineExtendSocialite.php
Last active Oct 30, 2019
Line service provider for laravel socialite.
View LineExtendSocialite.php
namespace SocialiteProviders\Line;
use SocialiteProviders\Manager\SocialiteWasCalled;
class LineExtendSocialite
* Register the provider.
heiswayi /
Created Feb 5, 2017
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A
Created Feb 1, 2017
CodeCommit Webhook for AWS Lambda
'use strict';
const url = require('url');
const https = require('https');
exports.handler = (event, context, callback) => {
let webhook_url = event.Records[0].customData;
if (!webhook_url) {
let error = new Error("Web-hook URL not provided as custom data.");
serithemage /
Last active Apr 3, 2020
AWS 공인 개발자 - 어소시에이트 수험 가이드
jherax / is-private-mode.js
Last active Mar 18, 2020
Detect if the browser is running in Private mode (Promise based)
View is-private-mode.js
* Lightweight script to detect whether the browser is running in Private mode.
* @returns {Promise<boolean>}
* Live demo:
* @see
* This snippet uses Promises. If you want to run it in old browsers, polyfill it:
* @see
machinekoder / Google Play Api - Apk
Last active Sep 27, 2019 — forked from martarodriguezm/Google Play Api - Apk
This python script uploads an apk file into Google Play Store using Android Play Publisher API
View Google Play Api - Apk

In Google Developer Console inside your app project, on the Credentials section, you must create a new "Service Account" "Client ID", if you have not already. And download the p12 file. You need the service account key file, generated in the Google APIs Console into the same directory and rename it to key.p12.

On Google Play Developer Console you have to give permissions to "" for uploading apks.


Download Google APIs Client Library for Python (google-api-python-client): or use pip:

  $ pip install google-api-python-client
You can’t perform that action at this time.