Skip to content

Instantly share code, notes, and snippets.

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

Septian Adi mcseptian

🏠
Working from home
View GitHub Profile
{
"types": {
"feat": {
"description": "A new feature",
"title": "Features"
},
"fix": {
"description": "A bug fix",
"title": "Bug Fixes"
},
@mcseptian
mcseptian / eslintrc.yaml
Last active February 20, 2020 02:45
Config of vscode-eslint 2.0.14
root: true
parser: babel-eslint
env:
browser: true
node: true
es6: true
extends:
- eslint:recommended
- plugin:import/errors
- plugin:import/warnings
@mcseptian
mcseptian / stylelintrc.yaml
Created February 20, 2020 02:43
Config of vscode-stylelint 0.80.0
extends: stylelint-config-standard
plugins:
- stylelint-selector-bem-pattern
- stylelint-scss
- stylelint-order
rules:
# Wrap lines greater than 120 characters
max-line-length: 120
# Override stylelint-config-standard - we only use CSS comments for annotations that don't warrant an empty line
comment-empty-line-before: null
@mcseptian
mcseptian / cloudSettings
Last active September 18, 2021 15:24
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-07-15T03:31:51.846Z","extensionVersion":"v3.4.3"}
@mcseptian
mcseptian / getComputedStyle.js
Last active March 2, 2020 11:00
Computed Style
(function () {
const nav = document.querySelector(".kss-nav");
const el = document.getElementById("codebase");
function getRules(el) {
var StyleSheetList = document.styleSheets[4],
result = [];
el.matches =
el.matches ||
@mcseptian
mcseptian / AND_OR_NOT
Created November 2, 2018 01:51 — forked from oliverdoetsch/AND_OR_NOT
Blogger: Globally conditional data tags for all page types
#AND
<b:if cond='data:blog.pageType == "index"'>
<b:if cond='data:blog.searchQuery'>
<!--search_page AND index_page-->
</b:if>
</b:if>
#OR
<b:if cond='data:blog.pageType in [&quot;index&quot;,&quot;archive&quot;]'>
<script>
//<![CDATA[
!function (t, e) {
t.InfiniteScroll = function (n) {
function r(t, n) {
return n = n || e, n.querySelectorAll(t)
}
@mcseptian
mcseptian / limgraph model
Last active April 14, 2018 01:41
Code Igniter files on limuny graph
<?php
//error_reporting(0);
class Harian extends CI_Model {
function __construct()
{
// Call the Model constructor
parent::__construct();
}