Skip to content

Instantly share code, notes, and snippets.

Avatar

Ömer Aslanbakan Eomerx

View GitHub Profile
@Eomerx
Eomerx / package.json
Created Oct 2, 2015
Packages.json Npm packages
View package.json
{
"version": "1.0.0",
"name": "blank-less",
"publishConfig": {
"proprietary-attribs": false
},
"description": "Blank Less Template",
"author": "Ömer Aslanbakan",
"repository": {
"type": "git",
@Eomerx
Eomerx / sass-space.scss
Last active Jun 24, 2019
SASS Space - Responsive CSS Positining Classes built with SASS
View sass-space.scss
// change to false if its not imported into bootstrap
$use-bootstrap: false;
// margin and padding values array
$space-values : (
5,
10,
15,
20,
30,
@Eomerx
Eomerx / less-space.less
Last active Mar 14, 2018
Less Space - Responsive CSS Positioning Classes
View less-space.less
//====================================
// FOR LOOP =
//====================================
.for(@i, @n) {
.-each(@i)
}
.for(@n) when (isnumber(@n)) {
.for(1, @n)
}
@Eomerx
Eomerx / validate-tc-id.js
Last active Sep 12, 2020
Validate TC ID
View validate-tc-id.js
//=======================================
// CHECK TC ID =
//=======================================
var checkTcNum = function(value) {
value = value.toString();
var isEleven = /^[0-9]{11}$/.test(value);
var totalX = 0;
for (var i = 0; i < 10; i++) {
totalX += Number(value.substr(i, 1));
}
@Eomerx
Eomerx / window-size-print.js
Last active Jul 30, 2019
Window Size Print & Browser Variables
View window-size-print.js
(function(window, document, undefined) {
//=============================================
// PRINT WINDOW SIZE =
//=============================================
var isButtonInsertedToBody;
var windowSizePrint = function() {
if (!isButtonInsertedToBody) {
document.body.insertAdjacentHTML("beforeend", '<div id="window-size-info"><div><span class="w"></span> X <span class="h"></span></div><style type="text/css">#window-size-info{z-index:9999999;position:fixed;right:0px;bottom:30px;padding:3px 8px;font-family:"Open Sans","Lato",Tahoma;font-size:15px;color:#fff;background-color:#000;box-shadow:0 0 0 2px#fff;}</style></div>');
isButtonInsertedToBody = true;
}
View lessmixins.less
//---------------------------------------------------
// LESS Prefixer
//---------------------------------------------------
//
// All of the CSS3 fun, none of the prefixes!
//
// As a rule, you can use the CSS properties you
// would expect just by adding a '.':
//
// box-shadow => .box-shadow(@args)
@Eomerx
Eomerx / hosts
Last active Jul 11, 2020
hosts
View hosts
127.0.0.1 localhost
127.0.0.1 activate.adobe.com
127.0.0.1 secure.tune-up.com
127.0.0.1 cuteftp.com
127.0.0.1 globalscape.com
127.0.0.1 activation.acronis.com
127.0.0.1 acronis.com
127.0.0.1 diskeeper.com
127.0.0.1 www.diskeeper.com
127.0.0.1 condusiv.com
@Eomerx
Eomerx / old-browsers.js
Last active Oct 2, 2015
Internet Explorer -9 old browser script
View old-browsers.js
var ieScriptTag = [
'<div id="old-browser-window">',
' <div class="old-browser-parent">',
' <div class="old-browser-overlay">',
' </div>',
' <div class="old-browser-holder">',
' <div class="old-browser-top">',
' <h1>Üzgünüz.</h1>',
' <h2>Kullanmakta olduğunuz tarayıcı oldukça eski.</h2>',
' <h3>Bu siteyi tüm özellikleriyle gösterebilmek adına, sizi daha modern tarayıcılar kullanmaya davet ediyoruz.</h3>',
View modernizr-2.6.2-respond-1.1.0.min.js
/* Modernizr 2.6.2 (Custom Build) | MIT & BSD
* Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-smil-svg-svgclippaths-touch-webgl-shiv-mq-cssclasses-addtest-prefixed-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-load
*/
;window.Modernizr=function(a,b,c){function D(a){j.cssText=a}function E(a,b){return D(n.join(a+";")+(b||""))}function F(a,b){return typeof a===b}function G(a,b){return!!~(""+a).indexOf(b)}function H(a,b){for(var d in a){var e=a[d];if(!G(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function I(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:F(f,"fun
@Eomerx
Eomerx / main.js
Last active Aug 29, 2015
main js blank project template
View main.js
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
You can’t perform that action at this time.