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
127.0.0.1 lcs.naver.com
127.0.0.1 ams.rmcnmv.naver.com
127.0.0.1 damovie.dn.naver.com
127.0.0.1 naver-smr.smartmediarep.com
127.0.0.1 daumkakao-smr.smartmediarep.com
127.0.0.1 advod.smartmediarep.com
127.0.0.1 smartmediarep.com
127.0.0.1 smrmembers-smr.smartmediarep.com
127.0.0.1 tvetamovie.dn.naver.net
@davejamesmiller
davejamesmiller / Laravel-Container.md
Last active Apr 1, 2020
Laravel's Dependency Injection Container in Depth
View Laravel-Container.md

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 'index.android.bundle'
create assets folder inside android/app/src/main if not exist
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
react-native run-android
@slitayem
slitayem / Mongodb_cheat_sheet.md
Last active Mar 19, 2018
Mongodb 3.x cheat sheet
View Mongodb_cheat_sheet.md

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
mix5003 / LineExtendSocialite.php
Last active Oct 30, 2019
Line service provider for laravel socialite.
View LineExtendSocialite.php
<?php
namespace SocialiteProviders\Line;
use SocialiteProviders\Manager\SocialiteWasCalled;
class LineExtendSocialite
{
/**
* Register the provider.
@heiswayi
heiswayi / repo-reset.md
Created Feb 5, 2017
GitHub - Delete commits history with git commands
View repo-reset.md

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
@babelop
babelop / CODECOMMIT-WEBHOOK.js
Created Feb 1, 2017
CodeCommit Webhook for AWS Lambda
View CODECOMMIT-WEBHOOK.js
'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.");
callback(error)
@serithemage
serithemage / AWSCertifiedDeveloperUnofficialStudyGuide.md
Last active Apr 3, 2020
AWS 공인 개발자 - 어소시에이트 수험 가이드
View AWSCertifiedDeveloperUnofficialStudyGuide.md
@jherax
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 https://output.jsbin.com/tazuwif
*
* This snippet uses Promises. If you want to run it in old browsers, polyfill it:
* @see https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.min.js
*
@machinekoder
machinekoder / Google Play Api - Apk Upload.md
Last active Sep 27, 2019 — forked from martarodriguezm/Google Play Api - Apk Upload.md
This python script uploads an apk file into Google Play Store using Android Play Publisher API
View Google Play Api - Apk Upload.md

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 "YOUR_SERVICE_ACCOUNT_EMAIL@developer.gserviceaccount.com" for uploading apks.

Installation

Download Google APIs Client Library for Python (google-api-python-client): https://code.google.com/p/google-api-python-client/ or use pip:

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