Skip to content

Instantly share code, notes, and snippets.


MDMCDC anovsiradj

View GitHub Profile
anovsiradj / file1.pascal
Last active Aug 14, 2019
replace non-number and/or non-alphabet from string use free pascal
View file1.pascal
// fpc~3 //
program HelloWorld;
uses RegExpr;
var rgx_1,rgx_2,str_1 :string;
var rst :string;
rgx_1 := '[^0-9]+';
anovsiradj / loop.xml
Last active Aug 19, 2018
Blogger/Blogspot dynamic CSS classes
View loop.xml
<!-- -->
<!-- padding/margin kelipatan 2 dan 5 (0 sampai 100)-->
<b:loop index='i' values='0 to 100' var='n'>
<b:if cond='data:n%5 == 0 OR data:n%2 == 0'>
.pd-<data:n/>{padding:<data:n/>px !important;}
.pd-t-<data:n/>{padding-top:<data:n/>px !important;}
.pd-b-<data:n/> {padding-bottom:<data:n/>px !important;}
.pd-l-<data:n/>{padding-left:<data:n/>px !important;}
.pd-r-<data:n/>{padding-right:<data:n/>px !important;}
anovsiradj / ncr.js
Last active Mar 19, 2020
[DEPRECATED] blogger / blogspot - NoCountryRedirect (NCR) always use ".com" instead ""
View ncr.js
if(/ window.location.replace(window.location.href.replace('','.com/ncr'));
View devdocs.json
anovsiradj / so_content_first.user.js
Last active Jun 29, 2018
StackOverflow: Content First
View so_content_first.user.js
// ==UserScript==
// @name StackOverflow: Content First
// @description remove unused html elements on stackoverflow.
// @namespace
// @version 2018.06.29
// @author Mayendra Costanov (anovsiradj)
// @include *://*
// @run-at document-end
// @grant none
// ==/UserScript==
View system-fonts.less
using OS fonts.
order, each vendor, new to old.
anovsiradj / looper.less
Last active Oct 7, 2019
LESS: Loop dynamic selector rule (CSS)
View looper.less
.looper(@class, @property, @unit: px, @min: 0, @max: 10, @step: 1) {
.loop(@i) when (@i <= @max) {
@cls: e(replace(@class, '\*', @i, 'g'));
@{cls} {
@{property}: unit(@i, @unit);
.loop(@i + @step);
anovsiradj / config.json
Last active Sep 27, 2017 — forked from anonymous/config.json
Joel (Global Intermedia Nusantara) Bootstrap Customizer Config for SIPKD
View config.json
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
View blog-main.xhtml
Posts List (Index/Archive/Search/Label/Tag/Category)
Belum tahu apa fungsinya, jadi di matikan dulu
penempatan, dibagian paling bawah:
<b:include cond='data:top.showPlusOne' name='googlePlusBootstrap'/>
belum ada iklan, jadi dihapus dulu, lokasi dalam <loop> paling bawah:
<b:if cond='data:post.includeAd'><div class='inline-ad'><data:adCode/></div></b:if>
anovsiradj / comments.xhtml
Created Aug 5, 2017
NeAR Blogger Snippets
View comments.xhtml
<h3 class='post-title entry-title pd-t-16 mg-t-8 mg-b-8 hidden-print' id='core_comments_nav'><span>Komentar</span>
<button class='btn btn-warning btn-xs bd-rad-0' data-toggle='tab' href='#comment-b' role='tab'>B</button>
<button class='btn btn-primary btn-xs bd-rad-0' data-toggle='tab' href='#comment-fb' role='tab'>FB</button>
<button class='btn btn-info btn-xs bd-rad-0' data-toggle='tab' href='#comment-disqus' role='tab'>Disqus</button>
<div class='tab-content hidden-print' id='core_comments'>
<div class='tab-pane' id='comment-fb'><div class='fb-comments' data-numposts='5' data-width='100%' expr:data-href='data:post.url.canonical'/></div>
<div class='tab-pane active' id='comment-b'>
<b:if cond='data:post.commentSource == 1'>
<b:include data='post' name='iframe_comments'/>