Skip to content

Instantly share code, notes, and snippets.

View inifaisal's full-sized avatar
🏠
Working from home

faisal inifaisal

🏠
Working from home
View GitHub Profile
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@inifaisal
inifaisal / git.migrate
Created March 26, 2018 03:25 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.
@inifaisal
inifaisal / appEntryPoint.js
Created February 7, 2018 16:59 — forked from markerikson/appEntryPoint.js
Webpack React/Redux Hot Module Reloading (HMR) example
import React from "react";
import ReactDOM from "react-dom";
import configureStore from "./store/configureStore";
const store = configureStore();
const rootEl = document.getElementById("root");
@inifaisal
inifaisal / nginx.conf
Created November 9, 2017 09:02 — forked from atomaths/nginx.conf
This is a FastCGI example server in Go.
## FastCGI
server {
location ~ /app.* {
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
}
}
## Reverse Proxy (이 방식으로 하면 http.ListenAndServe로 해야함)
server {
{
"Add Author Comment": {
"prefix": "author",
"body": [
"/**",
" * Author: Your mae",
" * Email: [email protected]",
" */"
],
"description": "add author comment"
@inifaisal
inifaisal / acl.php
Created May 9, 2017 02:44 — forked from toopay/acl.php
Rule Access Example
return array(
'task_list' => array(
'user' => array(
'create' => 0x00, // 0000
'send_message' => 0x01, // 0001
'edit_profile' => 0x82, // 10000010
'edit_interest_cities' => 0x02, // 0010
'edit_interest_event_cat' => 0x02, // 0010
'edit_interest_comm_cat' => 0x02, // 0010
'edit_photo' => 0x02, // 0010
@inifaisal
inifaisal / vue.js
Last active April 4, 2017 03:09
Vue.js via <script> tag
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>Belajar Vue.js di Kumparan</title>
<script src="https://unpkg.com/vue"></script>
</head>
<body>
<div id="app">
@inifaisal
inifaisal / share.js
Last active March 15, 2017 17:49
Hello Name!
const Hello = (name) => {
// ini adalah komentar yang sangat panjang sekaliiiiiiiiiiiiiiiiiiiiii............................................
console.log(`Hello ${name}!`);
}
Hello('Kumparan');