Skip to content

Instantly share code, notes, and snippets.

Avatar

Robert Wildling rowild

  • Vienna
View GitHub Profile
@edPratt
edPratt / mac-osx-node-npm.md
Last active Dec 19, 2019
Fixing npm On Mac OS X; When npm install -g does not work
View mac-osx-node-npm.md

Nuke Everything node/npm related

(If you have setup another prefix)
rm -rf .npm-global

sudo rm -rf /usr/local/lib/node_modules
sudo rm -rf ~/.npm
brew uninstall node --ignore-dependencies node
rm -rf /usr/local/lib/node_modules

@netsmertia
netsmertia / imageScaleAndRotate.dart
Last active May 24, 2020
image rotate and scale
View imageScaleAndRotate.dart
import 'dart:async';
import 'dart:math';
import 'dart:typed_data';
import 'dart:ui' as ui;
import 'package:flutter/services.dart' show rootBundle;
import 'package:flutter/material.dart' hide Image;
void main() => runApp(new MyApp());
@atomjar
atomjar / product_style
Last active Sep 3, 2020
Stylesheet for Vue Mastery's Intro to Vue course
View product_style
body {
font-family: tahoma;
color:#282828;
margin: 0px;
}
.nav-bar {
background: linear-gradient(-90deg, #84CF6A, #16C0B0);
height: 60px;
margin-bottom: 15px;
@kagarlickij
kagarlickij / powerlevel9k.zsh-theme
Last active May 29, 2019
This is my config for Powerlevel9k theme for ZSH located in ~/.oh-my-zsh/custom/themes/powerlevel9k
View powerlevel9k.zsh-theme
# vim:ft=zsh ts=2 sw=2 sts=2 et fenc=utf-8
################################################################
# powerlevel9k Theme
# https://github.com/bhilburn/powerlevel9k
#
# This theme was inspired by agnoster's Theme:
# https://gist.github.com/3712874
################################################################
################################################################
@NamelessCoder
NamelessCoder / AdditionalConfiguration.php
Created Mar 12, 2017
Using namelesscoder/typo3-cms-multilevel-cache
View AdditionalConfiguration.php
<?php
/*
* Demonstrates how to configure `namelesscoder/typo3-cms-multilevel-cache` for
* added L1 (runtime) and L2 (memcached) caches on existing database-backed caches.
*
* Tip: if your site changes frequently, consider assigning a low expiration time
* on the "default_memcached" cache configuration.
*/
@NamelessCoder
NamelessCoder / injectionmethods.md
Last active Feb 12, 2020
Why you should never use @Inject in TYPO3 Extbase
View injectionmethods.md

This mini-article describes the methods of dependency injection, what each method implies in terms of both performance and simplicity.

  1. Constructor injection

This method is half manual and quite well known. Declare your classes' dependencies as constructor and pass the dependencies when you construct your instances. This approach completely skips the automation around detection of injections - but performs the best of all methods.

@marcj
marcj / do-it.sh
Last active Apr 12, 2020
OSX PhpStorm, better performance - more FPS using OpenGL
View do-it.sh
cp /Applications/PhpStorm.app/Contents/bin/phpstorm.vmoptions ~/Library/Preferences/WebIde*
echo -ne "\n-Dawt.useSystemAAFontSettings=lcd\n-Dawt.java2d.opengl=true" >> ~/Library/Preferences/WebIde*/phpstorm.vmoptions
@jonathanpath
jonathanpath / _z-index.scss
Last active Jun 23, 2018
Z-index Sass scale
View _z-index.scss
// ----------------------
// == Z-index scale (inspired by https://gist.github.com/fat/1f6da6b3bd0311a1f8a0)
// ----------------------
// Z-Index Scale (private vars)
// --------------------------------------------------
$zindex-1: 100;
$zindex-2: 200;
$zindex-3: 300;
$zindex-4: 400;
@himynameisdave
himynameisdave / gradient-animation.less
Last active Nov 14, 2019
Mixins for Animating Between Gradients
View gradient-animation.less
.gradient-animation( @start, @end, @transTime ){
background-size: 100%;
background-image: linear-gradient(@start, @end);
position: relative;
z-index: 100;
&:before {
background-image: linear-gradient(@end, @start);
content: '';
display: block;
height: 100%;
@oliverthiele
oliverthiele / LocalConfiguration.php
Created Dec 11, 2014
Redis Configuration in TYPO3
View LocalConfiguration.php
<?php
return array(
// ...
'SYS' => array(
'caching' => array(
'cacheConfigurations' => array(
'cf_cache_hash' => array(
'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\RedisBackend',
'options' => array(
'database' => 10,
You can’t perform that action at this time.