This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Ratings Stars | |
(with as little code as possible) | |
*/ | |
.rating { | |
unicode-bidi: bidi-override; | |
direction: rtl; | |
text-align: center; | |
} | |
.rating > span { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.copySuccess, | |
.copyError { | |
width: 300px; | |
height: 75px; | |
display: none; | |
padding: 0; | |
margin: auto; | |
position: fixed; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { | |
// .. | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AwesomeProject extends Component { | |
state = {} | |
setStateAsync(state) { | |
return new Promise((resolve) => { | |
this.setState(state, resolve) | |
}); | |
} | |
async componentDidMount() { | |
StatusBar.setNetworkActivityIndicatorVisible(true) | |
const res = await fetch('https://api.ipify.org?format=json') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="wrapper"></div> | |
<input type="text" id="input" placeholder="Değeri Gir"><!-- | |
--><button id="convert" onClick="convert()">Dönüştür</button> | |
<p id="output"></p> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var evts = (function () { | |
'use strict'; | |
var listeners = [], | |
add, | |
remove; | |
add = function (evt, elem, fn) { | |
var callback = function (evt) { | |
fn(evt.target); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin size($width, $height: $width) { | |
width: $width; | |
height: $height; | |
} | |
@mixin display($display, $align: false) { | |
display: $display; | |
@if $align { | |
vertical-align: $align; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Browser loading time | |
let calc = () => { | |
const domint = window.performance.timing.domInteractive; | |
const reqstr = window.performance.timing.requestStart; | |
return domint - reqstr; | |
} | |
// Resource timing | |
let perf = () => { | |
return window.performance.getEntriesByType('resource') || []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.colors { | |
background-color: #153e78; | |
} |
OlderNewer