Skip to content

Instantly share code, notes, and snippets.

View pwartbichler's full-sized avatar
🎯
Focusing

Patrik Wartbichler pwartbichler

🎯
Focusing
View GitHub Profile
@1forh
1forh / index.html
Last active July 3, 2024 14:24
Prevent map zoom on scroll
<div id="map-wrapper">
<iframe id="map-canvas"></iframe>
</div>
@wpscholar
wpscholar / vagrant-cheat-sheet.md
Last active April 26, 2025 20:24
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
@lukasborawski
lukasborawski / input.scss
Last active February 12, 2021 11:12
Perfect media-queries screen breakpoints SASS @mixin. Tested on Apple Devices: iPhone4, iPhone5, iPad3, MacBook Pro, iPad Mini. http://sassmeister.com/gist/8529371
$media-queries: true;
@mixin bp($point) {
@if ($media-queries) {
$bp-large-screen: 1824px;
$bp-bigscreen: 1824px;
$bp-ipad-max: 1024px;
$bp-ipad-min: 768px;
$bp-iphone5-max: 568px;
$bp-iphone-max: 480px;
@putzflorian
putzflorian / country.php
Last active December 19, 2015 12:29
Countrydropdown preselected list
<?php if($this->editmode){ ?>
<?= $this->translate('Auswahl') ?>:
<?php echo $this->select("mymode",array(
"store" => array(
array("myselect", $this->translate('Länder vorselektierung')),
array("myauswahl", $this->translate('Länder auswählen'))
),"reload" => true
)); ?>
@putzflorian
putzflorian / Dropdown.php
Created July 4, 2013 09:56
Object_Service Dropdown im Pimcoreobject
<?php
$myselect = Object_Service::getOptionsForSelectField($this->object, "kategorie");
echo $myselect[$this->object->getKategorie()];
?>
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active April 20, 2025 23:00
A badass list of frontend development resources I collected over time.
You need jQuery 1.6 and upper.
Facebook:
For the FB reload you also need a Variable called "lang" in js with the language code (de, en, it, fr...)
For more information show comments in the file facebook.js
Google Plus:
You only need jQuery and edit the selector (id,class) where you would like to show g+
@putzflorian
putzflorian / Formularcontroller.php
Last active December 16, 2015 03:49
Formularversand
<?php
$mandatoryFields = array(
'firstname' => $this->_getParam('firstname'),
'lastname' => $this->_getParam('lastname'),
'street' => $this->_getParam('street'),
'zip' => $this->_getParam('zip'),
'city' => $this->_getParam('city'),
'land' => $this->_getParam('land'),
'email' => $this->_getParam('email')
);
@barryvdh
barryvdh / _ide_helper.php
Last active December 16, 2024 10:25
Laravel IDE Helper for Netbeans / PhpStorm / Sublime Text 2 CodeIntel, generated using https://github.com/barryvdh/laravel-ide-helper
<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.5.13 on 2017-09-28.
*
* @author Barry vd. Heuvel <[email protected]>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
exit("This file should not be included, only analyzed by your IDE");
@Maksold
Maksold / local.xml
Last active May 28, 2021 20:02
#magento #xml - local.xml boilerplate
<?xml version="1.0"?>
<layout>
<default>
<!--Root/Default Layouts-->
<reference name="root">
<!--Appending Block-->
<block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/>
</reference>
<!--CSS and JS Files-->