Skip to content

Instantly share code, notes, and snippets.

@Landish
Landish / Disable Font Size Changing on Landscape Mode.css
Last active November 24, 2016 10:23
iPhone Web Application Development Tips
body {
-webkit-text-size-adjust: none;
}
@Landish
Landish / How to use?
Last active December 26, 2015 01:19
Laravel 4 Custom Facades
1) Copy the /MyNameSpace/ folder in your /app/libraries/ directory
2) Create below listed files in /app/libraries/MyNameSpace/ directory and write your code.
3) Add "app/libraries" to autoload classmap object in composer.json file
4) Run "composer dump-autoload" command with your CLI.
5) Add Route::get('test', function() { return Myclass::myMethod(); }); closure function to your app/routes.php file.
6) Visit to page http://laravel/index.php/test and see the code in action.
@Landish
Landish / code-1.js
Last active August 29, 2015 14:07 — forked from bennadel/code-1.js
window.navigator.standalone
@Landish
Landish / mousewheel.md
Last active August 29, 2015 14:14
Cross-Platform Javascript Disable/Enable Mousewheel

##Disable

document.onmousewheel = function(){ stopWheel(); } /* IE7, IE8 */
if(document.addEventListener){ /* Chrome, Safari, Firefox */
    document.addEventListener('DOMMouseScroll', stopWheel, false);
}
 
function stopWheel(e){
factory('cometd', function($rootScope) {
var cometd = $.cometd;
// Configure cometd
cometd.configure({
url: location.protocol + '//' + location.host + config.contextPath + '/cometd',
logLevel: 'info'
});
// Add a listener for the handshake *TODO* what should be done if message fails ?
@Landish
Landish / unicode-range.css
Last active August 29, 2015 14:27
CSS @font-face unicode-range property for Georgian fonts
@font-face {
/* ... */
unicode-range: U+10D0-10F0;
}
@Landish
Landish / cli-debugging.md
Last active December 8, 2015 12:34
Ionic

CLI Debugging

ionic emulate ios --livereload --consolelogs --serverlogs
ionic emulate android --livereload --consolelogs --serverlogs
 
ionic run ios -l -c -s
ionic run android -l -c -s
@Landish
Landish / KeyCodes.md
Created November 19, 2015 13:46
KeyCodes
var keyCode = {
    /**
     * keypress event key-codes
     */
    'keyPress': {
        'GraveAccent': 96, // `
        'One': 49, // 1
 'Two': 50, // 2
@Landish
Landish / node.md
Created April 2, 2016 11:45
Node/NPM Tips & Tricks

Faster NPM

Execute the following command, before running npm install:

$ npm set progress=false
@Landish
Landish / calendar.md
Last active May 28, 2016 14:24
Month names and week days in array translated in Georgian

Full Month Names

['იანვარი', 'თებერვალი', 'მარტი', 'აპრილი', 'მაისი', 'ივნისი', 'ივლისი', 'აგვისტო', 'სექტემბერი', 'ოქტომბერი', 'ნოემბერი', 'დეკემბერი']

Short Month Names

['იან', 'თებ', 'მარ', 'აპრ', 'მაი', 'ივნ', 'ივლ', 'აგვ', 'სექ', 'ოქტ', 'ნოე', 'დეკ']