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
/** | |
* 1. http://www.paulirish.com/2012/box-sizing-border-box-ftw/ | |
* http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ | |
* http://fatihhayrioglu.com/css3-box-sizing-ozelligi/ | |
* | |
* 2. http://aestheticallyloyal.com/public/optimize-legibility/ | |
* | |
* 3. http://maxvoltar.com/archive/-webkit-font-smoothing | |
* | |
* 4. http://maximilianhoffmann.com/posts/better-font-rendering-on-osx |
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
<select name="Sehir"> | |
<option value="0">------</option> | |
<option value="1">Adana</option> | |
<option value="2">Adıyaman</option> | |
<option value="3">Afyonkarahisar</option> | |
<option value="4">Ağrı</option> | |
<option value="5">Amasya</option> | |
<option value="6">Ankara</option> | |
<option value="7">Antalya</option> | |
<option value="8">Artvin</option> |
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
/* | |
* Replace all SVG images with inline SVG | |
*/ | |
jQuery('img.svg').each(function(){ | |
var $img = jQuery(this); | |
var imgID = $img.attr('id'); | |
var imgClass = $img.attr('class'); | |
var imgURL = $img.attr('src'); | |
jQuery.get(imgURL, function(data) { |
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
2 - Autos & Vehicles | |
1 - Film & Animation | |
10 - Music | |
15 - Pets & Animals | |
17 - Sports | |
18 - Short Movies | |
19 - Travel & Events | |
20 - Gaming | |
21 - Videoblogging | |
22 - People & Blogs |
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
/* | |
* The Events Calendar Pro - Hide Mini Calendar Event List Until Calendar Date is Clicked | |
* TEC PRO @3.11.1 | |
*/ | |
add_action( 'wp_footer', 'tribe_hide_mini_calendar_list_until_clicked', 50 ); | |
function tribe_hide_mini_calendar_list_until_clicked() { | |
?> | |
<script> | |
var $ = jQuery.noConflict(); |
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
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
/* CSS */ | |
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
<?php | |
/* | |
Plugin Name: Frontend AJAX Sub-Category Dropdown | |
Plugin URI: http://khaledsaikat.com | |
Description: Load sub-category dropdown based on parent category by ajax call | |
Version: 0.1 | |
Author: Khaled Hossain | |
Author URI: http://khaledsaikat.com | |
*/ |
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
import os | |
import falcon | |
import jinja2 | |
def load_template(name): | |
path = os.path.join('templates', name) | |
with open(os.path.abspath(path), 'r') as fp: | |
return jinja2.Template(fp.read()) |
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
//daterangepicker.js | |
$(function() { | |
function cb(start, end) { | |
$('#reportrange span').html(start.format('MMMM D') + ' - ' + end.format('MMMM D')); | |
} | |
cb(moment().subtract(29, 'days'), moment()); | |
$('#reportrange').daterangepicker({ |
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
// Init packages for server | |
var express = require('express'); | |
var app = express(); | |
var server = require('http').createServer(app); | |
var io = require('socket.io')(server); | |
var fs = require('fs'); | |
// Install robot | |
var robot = require("robotjs"); |