Skip to content

Instantly share code, notes, and snippets.

View muni2explore's full-sized avatar
😄
keep learning

muni muni2explore

😄
keep learning
View GitHub Profile
@muni2explore
muni2explore / app.html
Last active May 24, 2022 07:29
Get youtube video list
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script src="https://apis.google.com/js/api.js"></script>
<script>
@muni2explore
muni2explore / vim-shortcuts.md
Created November 30, 2020 09:30 — forked from tuxfight3r/vim-shortcuts.md
VIM SHORTCUTS

VIM KEYBOARD SHORTCUTS

MOVEMENT

h        -   Move left
j        -   Move down
k        -   Move up
l        -   Move right
$        -   Move to end of line
0        -   Move to beginning of line (including whitespace)
@muni2explore
muni2explore / Container.php
Created September 22, 2020 00:04 — forked from MustafaMagdi/Container.php
PHP Dependency Injection Container
<?php
/**
* Class Container
*/
class Container
{
/**
* @var array
*/
DB::listen(function($query){
    dump($query);
});
@muni2explore
muni2explore / php.md
Last active June 2, 2019 05:35
PHP Snippets
header("Access-Control-Allow-Origin: *");

Documents: https://enable-cors.org/server_php.html

## OR
if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') {
    header('Access-Control-Allow-Origin: *');
 header('Access-Control-Allow-Methods: POST, GET, DELETE, PUT, PATCH, OPTIONS');

Install yarn

npm install yarn -g

OR

@muni2explore
muni2explore / electron.md
Last active March 23, 2019 03:23
Eelectron

Creating An App

npm init -y

npm install electron -D

touch index.js

npx electron index.js
<?php
/**
* HTTP Status Code
*/
$statu_codes = array(
100 => 'Continue',
101 => 'Switching Protocols',
200 => 'OK',
201 => 'Created',
@muni2explore
muni2explore / pipenv-cheat-sheet.md
Last active January 28, 2019 13:54
pipenv Cheatsheet

Pipenv is the implementation of the Pipfile standard. It is built on top of pip and virtualenv and manages both your environment and package dependencies, and it does so like a boss.

virtualenv

When developing, you would create a Python virtual environment using virtualenv in order to isolate your project from the system Python or other virtual environments.

Install pipenv

pip3 install pipenv
@muni2explore
muni2explore / README.md
Created January 31, 2018 11:12 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})