Skip to content

Instantly share code, notes, and snippets.

View laphilosophia's full-sized avatar
🖖
Live long and prosper

Erdem Arslan laphilosophia

🖖
Live long and prosper
  • World
  • 16:34 (UTC +03:00)
View GitHub Profile
@laphilosophia
laphilosophia / detectandroidversion.js
Created June 23, 2016 16:11
Detect android version with javascript.
function getAndroidVersion(ua) {
ua = (ua || navigator.userAgent).toLowerCase();
var match = ua.match(/android\s([0-9\.]*)/);
return match ? match[1] : false;
};
var androidVersion = parseFloat(getAndroidVersion());
if (androidVersion === 4.4) {
// ..
}
.copySuccess,
.copyError {
width: 300px;
height: 75px;
display: none;
padding: 0;
margin: auto;
position: fixed;
var gulp = require('gulp');
var browserify = require('browserify');
var notify = require('gulp-notify');
var source = require('vinyl-source-stream');
var watchify = require('watchify');
var plumber = require('gulp-plumber');
var less = require('gulp-less');
var csso = require('gulp-csso');
var watch = require('gulp-watch');
var envify = require('envify');
.colors {
background-color: #153e78;
}
@laphilosophia
laphilosophia / ratingStar.css
Last active February 29, 2016 13:16
Ratings Stars
/*
Ratings Stars
(with as little code as possible)
*/
.rating {
unicode-bidi: bidi-override;
direction: rtl;
text-align: center;
}
.rating > span {