Skip to content

Instantly share code, notes, and snippets.

View englishextra's full-sized avatar
💜
the beat goes on

englishextra englishextra

💜
the beat goes on
View GitHub Profile
@englishextra
englishextra / gist:924503
Created April 17, 2011 21:41
shimansky.biz/search/index.php
<?php
/**
* Documents the class following or the file?
* @package Shimansky.biz-web-site-source-code
*/
$relpa = preg_replace("/[\/]+/", "/", $_SERVER['DOCUMENT_ROOT'] . '/');
$a = array(
'inc/init2.inc'
@englishextra
englishextra / gist:935614
Created April 21, 2011 22:23
shimansky.biz/scripts/update.php
<?php
/**
* Documents the class following or the file?
* @package Shimansky.biz-web-site-source-code
*/
$relpa = preg_replace("/[\/]+/", "/", $_SERVER['DOCUMENT_ROOT'] . '/');
$a = array(
'inc/init2.inc'
@englishextra
englishextra / swamper.class.php
Created June 24, 2012 06:14
General purpose PHP class to work with strings and files
<?php
/**
* shimansky.biz
*
* Static web site core scripts
* @package shimansky.biz
* @author Serguei Shimansky <serguei@shimansky.biz>
* @copyright Serguei Shimansky 10:07 24.06.2012
* @access public
* @version 0.2
@englishextra
englishextra / web-design-for-mobiles-and-tablets-viewport-sizes
Last active April 17, 2018 16:02 — forked from francoishill/gist:6483997
web-design-for-mobiles-and-tablets-viewport-sizes
/*http://i-skool.co.uk/mobile-development/web-design-for-mobiles-and-tablets-viewport-sizes/*/
/*At least requires the meta viewport tag with content 'width=device-width'*/
@media only screen and (max-width: 1080px) and (orientation : portrait) {
/* PORTRAIT:
Windows Surface Pro*/
}
@media only screen and (max-width: 800px) and (orientation : portrait) {
/* PORTRAIT:
Acer Iconia Tab A100
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
/**
* gist.github.com/englishextra/cdd503793392281a8a0c
*/
@media print {
html {
font-size: 100%;
margin: 0;
padding: 0;
}
body {
/* ----------------------------------------------------------------------------------------------------
Super Form Reset
A couple of things to watch out for:
- IE8: If a text input doesn't have padding on all sides or none the text won't be centered.
- The default border sizes on text inputs in all UAs seem to be slightly different. You're better off using custom borders.
- You NEED to set the font-size and family on all form elements
- Search inputs need to have their appearance reset and the box-sizing set to content-box to match other UAs
/*!
* modified so that not to use iScroll v5.1.3 github.com/cubiq/iscroll/blob/master/build/iscroll-lite.js
* cdnjs.cloudflare.com/ajax/libs/iScroll/5.1.3/iscroll-lite.min.js
* see why here github.com/blivesta/drawer/issues/21
* jquery-drawer v3.1.0
* Flexible drawer menu using jQuery, iScroll and CSS.
* http://git.blivesta.com/drawer
* License : MIT
* Author : blivesta <design@blivesta.com> (http://blivesta.com/)
*/
@englishextra
englishextra / evento.js
Last active September 23, 2016 19:36 — forked from erikroyall/evento.js
modified Evento - v1.0.0
/*!
* modified Evento - v1.0.0
* by Erik Royall <erikroyalL@hotmail.com> (http://erikroyall.github.io)
* Dual licensed under MIT and GPL
* gist.github.com/erikroyall/6618740
* gist.github.com/englishextra/3a959e4da0fcc268b140
* removed Array.prototype.indexOf shim
* removed Helio stuff which seems to be added
* for some other library, and works without Helio
* jsbin.com/jilevi/edit?html,js,output