Skip to content

Instantly share code, notes, and snippets.

View vsxed's full-sized avatar

Eduard Mayer vsxed

  • travel tiger GmbH & Co. KG
  • Cologne
View GitHub Profile
function KeyPress(e) {
var evtobj = window.event? event : e;
if (evtobj.keyCode == 37 && evtobj.altKey) {
window.history.back()
} else if (evtobj.keyCode == 39 && evtobj.altKey) {
window.history.forward()
};
}
--- Activities configurator ---
https://extensions.gnome.org/extension/358/activities-configurator/
--- Alternatetab ---
https://extensions.gnome.org/extension/15/alternatetab/
--- Battery status ---
https://extensions.gnome.org/extension/817/battery-status/
--- Coverflow alt-tab ---
@vsxed
vsxed / .htaccess
Created September 10, 2015 13:06
Test
# Kirby .htaccess
# rewrite rules
<IfModule mod_rewrite.c>
# enable awesome urls. i.e.:
# http://yourdomain.com/about-us/team
RewriteEngine on
# make sure to set the RewriteBase correctly
@vsxed
vsxed / SassMeister-input.scss
Created September 4, 2015 08:03
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
////
/// Font-face importer (FFI)
/// @author Hugo Giraudel
////
@vsxed
vsxed / _gradient.scss
Last active August 29, 2015 14:26
Linear gradient mixin with n color-stop support, vertical | horizontal, ie-filter and all notations (colorzilla)
/******************************************************************************
*
* _gradients.scss: Creates mixin for gradients.
*
* @author Eduard M.
*
******************************************************************************/
@mixin gradient($gradient: (), $fallback: '', $direction: 'horizontal') {
@vsxed
vsxed / SassMeister-input.scss
Created April 18, 2015 10:43
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
// Will result in wrong output
$list1: (
('value1', 'value2', 'value3', 'value4', 'value5', 'value6')
);
@vsxed
vsxed / gist:5522225
Created May 5, 2013 21:21
Fix for WP admins who are using the "Spotify Embed" plugin (http://wpgrafie.de/wp-plugins/spotify-embed/en/) and have problems with their mobile theme.
@media all and (max-width: 568px) {
.post iframe[src^="https://embed.spotify.com"],
.post-head iframe[src^="https://embed.spotify.com"] {
max-height: 440px;
}
}
@vsxed
vsxed / fuck.php
Created November 19, 2012 21:11
FUCK
$systemAppArray = array(
"com.android.vending"=>"Google Play Store",
"com.sec.android.app.camera"=>"Kamera",
"com.android.email"=>"Email",
"com.google.android.gm"=>"Google Mail",
"com.android.mms"=>"Nachrichten",
"com.android.music"=>"Musik",
"com.swype.android.inputmethod"=>"Swype",
"com.google.android.youtube"=>"YouTube"
);
@vsxed
vsxed / namethatfile.php
Created November 19, 2012 20:19
Array syntax
$arrrrray = array(
"Arcade & Action",
"Casual",
"Cards & Casino",
"Brain & Puzzle",
"Racing",
"Sports Games");
if (in_array($appCategory, $arrrrray)){
$appCategory = "games";
@vsxed
vsxed / WHOOP
Created November 12, 2012 20:32
WHOOP
// Catching the category from the Play Store description and sorting the list
if (isset($appCategory)){
switch($appCategory){
// APPS
case "Weather": $appCategory = "apps"; break; // Wetter
case "Transportation": $appCategory = "apps"; break; // Verkehr
case "Entertainment": $appCategory = "apps"; break; // Unterhaltung
case "Tools": $appCategory = "apps"; break; // Tools
case "Sports": $appCategory = "apps"; break; // Sport
case "Social": $appCategory = "apps"; break; // Soziale Netzwerke