Skip to content

Instantly share code, notes, and snippets.

View xndrdev's full-sized avatar
🎯
Focusing

Alexander Wolf xndrdev

🎯
Focusing
View GitHub Profile
@maiksprenger
maiksprenger / shopware.py
Last active December 26, 2021 14:48
Basic Python 3 Shopware API client
"""
A basic Shopware 5 API client I threw together for a project. There's a few gotchas in here that
I thought are useful enough to others to publish it. But please take it as is - it works for my
purpose (processing Shopware articles daily), I make no claims beyond that.
"""
import logging
import os
import requests
@xndrdev
xndrdev / index.tpl
Last active July 10, 2016 13:39
AdvancedMenu mit Kategoriebildern
{extends file="parent:frontend/advanced_menu/index.tpl"}
{block name="frontend_plugins_advanced_menu_button_category"}{/block}
{block name="frontend_plugins_advanced_menu_button_close"}{/block}
{block name="frontend_plugins_advanced_menu"}
{function name="emz_categories_top" level=0}
{$columnIndex = 0}
@PurpleBooth
PurpleBooth / README-Template.md
Last active October 10, 2024 08:52
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@wowo
wowo / gender-module-installation.sh
Last active May 5, 2021 23:01
Guesing gender based on name in PHP
# install gender http://www.php.net/manual/en/book.gender.php
sudo apt-get install libpcre3-dev
sudo pecl install gender
# generate data
mkdir ~/gender
sudo pear run-scripts pecl/gender
# eneble module
echo 'extension=gender.so' >> /etc/php5/cli/php.ini
@ryanflorence
ryanflorence / static_server.js
Last active July 21, 2024 12:43
Node.JS static file web server. Put it in your path to fire up servers in any directory, takes an optional port argument.
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 8888;
http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname
, filename = path.join(process.cwd(), uri);