Skip to content

Instantly share code, notes, and snippets.

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

Imam Susanto imsus

🏠
Working from home
View GitHub Profile
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
@imsus
imsus / Preferences.sublime-settings
Created January 11, 2016 10:06
Sublime Text Preferences
{
"afn_insert_dimensions": false,
"always_show_minimap_viewport": true,
"auto_indent": true,
"binary_file_patterns":
[
".DS_Store",
"node_modules/",
"tmp/",
"*.png",
@imsus
imsus / webpack.config.js
Last active July 9, 2018 13:35
Webpack + Browsersync + Vue Loader
var path = require('path');
var webpack = require('webpack');
var BrowserSyncPlugin = require('browser-sync-webpack-plugin');
var x = 1;
module.exports = {
entry: './src/main.js',
output: {
path: path.resolve(__dirname, './dist'),
publicPath: '/dist/',
@imsus
imsus / gist:aac0d9c2acfacfe3a690
Created March 18, 2016 14:11 — forked from okor/gist:79c38cfb03b153bd4eb2
Install Thumbor on Ubuntu 14.04
# sudo su and run the following
sudo apt-get update && \
sudo apt-get -y upgrade && \
# install all dependencies
sudo apt-get -y install \
build-essential \
checkinstall \
gcc \
@imsus
imsus / .git-commit-template.txt
Created March 19, 2016 14:08 — forked from adeekshith/.git-commit-template.txt
Enforce good commit message practices across teams.
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|
# Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23
@imsus
imsus / gist:8a6b933e7fd1bcdc411d64e8be40a371
Created April 24, 2016 00:35 — forked from belsrc/gist:672b75d1f89a9a5c192c
Simple Vue.js filters that I usually need
/**
* Changes value to past tense.
* Simple filter does not support irregular verbs such as eat-ate, fly-flew, etc.
* http://jsfiddle.net/bryan_k/0xczme2r/
*
* @param {String} value The value string.
*/
Vue.filter('past-tense', function(value) {
// Slightly follows http://www.oxforddictionaries.com/us/words/verb-tenses-adding-ed-and-ing
var vowels = ['a', 'e', 'i', 'o', 'u'];
@imsus
imsus / feedly_api.md
Created May 9, 2016 05:36 — forked from d3m3vilurr/feedly_api.md
Unofficial Feedly API Document

IDs

  • user_id - user/:uid
  • feed_id - feed/:feed_uri
  • category_id - :user_id/category/:category (special category: global.all, global.uncategorized)
  • tag_id - :user_id/tag/:tag (special tag: global.saved)

APIs

http://cloud.feedly.com/:version/:api

[{"name":"members","color":"Red","position":{"x":100,"y":100},"increment":true,"timestamp":true,"softdelete":true,"column":[{"name":"id","type":"increments","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c611","order":0}],"relation":[],"seeding":[]}]
@imsus
imsus / gamification.skema
Last active June 20, 2016 12:11
the description for this gist
[{"name":"members","color":"Red","position":{"x":500,"y":262},"increment":true,"timestamp":true,"softdelete":true,"column":[{"name":"id","type":"increments","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c611","order":0},{"name":"first_name","type":"string","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":true,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c639","order":1},{"name":"points","type":"bigInteger","length":"","defaultvalue":"0","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":true,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c647","order":2}],"relation":[{"extramethods":"","foreignkeys":"","name":"actions","relatedmodel":"actions","relationtype":"belongsToMany","usenamespace":""},{"extramethods":"","foreignkeys":"","name":"badges
@imsus
imsus / laravel-per-project-installation.md
Created July 24, 2016 16:35 — forked from midascodebreaker/laravel-per-project-installation.md
Laravel Homestead per Project Installation on Windows 10
Prerequisite:
  • Php7
  • Composer
  • Gulp
  • Npm
  • Vagrant
  • Virtual Box
  • Laravel Installer