Skip to content

Instantly share code, notes, and snippets.

import axios from 'axios'
import { getToken } from '../helpers/auth'
const BASE_URL = 'https://notflixtv.herokuapp.com/api/v1'
const API = axios.create({
baseURL: BASE_URL
})
API.get()
@afdallah
afdallah / karabiner.json
Created May 2, 2019 05:56
Karabiner-element remap escape capslock
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": false,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@afdallah
afdallah / App.js
Created January 16, 2018 07:23 — forked from madcoda/App.js
React-router v4 multi layout
import React, { Component } from 'react'
import { BrowserRouter as Router, Route, Link, Match, Redirect, Switch } from 'react-router-dom'
import OverviewPage from './page/OverviewPage'
import AccountPage from './page/AccountPage'
/*
Layouts, inline define here for demo purpose
you may want to define in another file instead
*/
@afdallah
afdallah / header.php
Last active October 3, 2017 05:16
Header di single post background dengan post thumbnail(featured image)
<header
id="masthead"
class="hero"
<?php
/**
* Gunakan thumbnail default jika thumbnail post tidak di set
*/
if ( is_single() ) {
if ( has_post_thumbnail() ) {
@afdallah
afdallah / LICENCE SUBLIME TEXT
Created September 13, 2017 15:18 — forked from RoseySoft/LICENCE SUBLIME TEXT
Sublime Text 3 Serial key build is 3103
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
93F6323C FD7F7544 3F39C318 D95E6480
FCCC7561 8A4A1741 68FA4223 ADCEDE07
# ---------------------------------------------------
# Vimeo
# ---------------------------------------------------
104.156.85.217 vimeo.com
23.214.58.223 secure-c.vimeocdn.com
74.113.233.128 developer.vimeo.com
#23.235.43.143 i.vimeocdn.com
#23.235.43.143 f.vimeocdn.com
80.239.137.98 a.vimeocdn.com
@afdallah
afdallah / Bypass vimeo, reddit
Created May 12, 2017 10:35
Tambahkan pada file /etc/hosts
# ---------------------------------------------------
# Vimeo
# ---------------------------------------------------
104.156.85.217 vimeo.com
23.214.58.223 secure-c.vimeocdn.com
74.113.233.128 developer.vimeo.com
23.235.43.143 i.vimeocdn.com
23.235.43.143 f.vimeocdn.com
80.239.137.98 a.vimeocdn.com
@afdallah
afdallah / Omnicomplete Love YCM
Last active April 1, 2017 14:44
Enable omnifcomplete on YouCompleteMe
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@afdallah
afdallah / gitignore
Created April 26, 2016 07:12
gitignore boilerplate for front end developer
# Metadata files
Thumbs.db
.DS_Store
# Frontend
.sass-cache
/bootstrap/compiled.php
public/assets/**/min/*
public/assets/images/originals/*
node_modules
bower_components