This file contains hidden or 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 | |
function test($geschlecht) { | |
$gender=$geschlecht; | |
$gExploded = explode(",", $gender); | |
return str_replace("Männer", "male", str_replace("Frauen", "female",str_replace("Unisex", "unisex", $gExploded[0]))); | |
} | |
var_dump(test("Männer, Frauen")); | |
var_dump(test("Männer")); |
This file contains hidden or 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
<!-- Basic Product Information --> | |
{G:ID} | |
{G:TITLE} | |
{G:LINK} | |
{G:DESCRIPTION} | |
{G:GOOGLE_PRODUCT_CATEGORY} | |
{G:PRODUCT_TYPE,[10]} | |
{G:IMAGE_LINK} | |
<g:condition>new</g:condition> |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>title</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
</head> | |
<body> | |
<h1>Hello, world</h1> | |
<script> | |
if ('serviceWorker' in navigator) { |
This file contains hidden or 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
var cacheName = 'notenrechnerjk829829328931'; | |
var filesToCache = [ | |
'/notenRechner/', | |
'/notenRechner/manifest.json', | |
'/notenRechner/index.html', | |
'/notenRechner/libs/material.min.js', | |
'/notenRechner/libs/material.min.css', | |
'/notenRechner/js/app.js', | |
'/notenRechner/styles/main.css', |
This file contains hidden or 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 | |
class MySuperController { | |
protected function _disableModule($moduleName) { | |
// Disable the module itself | |
$nodePath = "modules/$moduleName/active"; | |
if (Mage::helper('core/data')->isModuleEnabled($moduleName)) { | |
Mage::getConfig()->setNode($nodePath, 'false', true); | |
} |
This file contains hidden or 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
version: '2' | |
services: | |
web: | |
image: meanbee/magento:5.6-apache | |
hostname: localdomain.dev | |
environment: | |
- DOCKER_FIX=true | |
- DEBUG=true | |
- VIRTUAL_HOST=http://localdomain.dev | |
- ENABLE_SENDMAIL=true |
This file contains hidden or 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
LOCK TABLES `admin_role` WRITE , `admin_user` WRITE; | |
SET @SALT = "yourInstallationSalt"; | |
SET @PASS = CONCAT(MD5(CONCAT( @SALT , "YOURPASSWORDSTRING") ), CONCAT(":", @SALT )); | |
SELECT @EXTRA := MAX(extra) FROM admin_user WHERE extra IS NOT NULL; | |
INSERT INTO `admin_user` (firstname,lastname,email,username,password,created,lognum,reload_acl_flag,is_active,extra,rp_token_created_at) | |
VALUES ('firstName','lastName','[email protected]','username',@PASS,NOW(),0,0,1,@EXTRA,NOW()); | |
INSERT INTO `admin_role` (parent_id,tree_level,sort_order,role_type,user_id,role_name) |
This file contains hidden or 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
'use strict'; | |
const ghost = require('ghost'); | |
const port = process.env.PORT || 8080; | |
ghost().then(function (ghostServer) { | |
ghostServer.rootApp.listen(port); | |
}); |
This file contains hidden or 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
{ | |
"name": "ghostappengine", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"engines": { | |
"node": "6.x" | |
}, | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", |
This file contains hidden or 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
#/etc/X11/xorg.conf | |
Section "Device" | |
Identifier "nvidia" | |
Driver "nvidia" | |
Option "NoLogo" "true" | |
Option "DPI" "96 x 96" | |
# Specify Nvidia PCI device | |
BusID "PCI:1:0:0" | |
# Make sure X starts also when no outputs are connected to the Nvidia chip | |
Option "AllowEmptyInitialConfiguration" |
OlderNewer