Skip to content

Instantly share code, notes, and snippets.

View amirilovic's full-sized avatar

Aleksandar Mirilovic amirilovic

  • adidas
  • Nuremberg, Germany
View GitHub Profile
@amirilovic
amirilovic / web.config
Created September 25, 2014 09:29
IIS web.config for AngularJS
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.webServer>
<staticContent>
<remove fileExtension=".svg"/>
<mimeMap fileExtension=".svg" mimeType="image/svg+xml"/>
</staticContent>
<rewrite>
<rules>
<rule name="AngularJS" stopProcessing="true">

Keybase proof

I hereby claim:

  • I am amirilovic on github.
  • I am amirilovic (https://keybase.io/amirilovic) on keybase.
  • I have a public key ASCqSYZ63syLfh1dcosLNTj3u_sWoRGV6RXF8wbWdTrXgwo

To claim this, I am signing this object:

@amirilovic
amirilovic / docker-compose.yml
Created September 7, 2019 23:37
redis docker compose
version: "3"
services:
redis:
image: redis
ports:
- "6379:6379"
restart: always
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install zsh
brew install fzf
$(brew --prefix)/opt/fzf/install
brew install go
brew install jq
brew install kubectl
brew install romkatv/powerlevel10k/powerlevel10k
echo "source /opt/homebrew/opt/powerlevel10k/powerlevel10k.zsh-theme" >> ~/.zshrc
## Delete word
Keyboard Shortcut: ⌥⌫
Action: Send Hex Code
Code: 0x17
## Delete line
Keyboard Shortcut: ⌘⌫
Action: Send Hex Code
Code: 0x15
// importing dependencies
define(['react'], function (React) {
// exporting
return function Title({ text }) {
return React.createElement('h1', null, text)
};
});
// importing dependencies
const React = require('react');
//exporting
module.exports = function Title({ text }) {
return React.createElement('h1', null, text)
};
(function (root, factory) {
if (typeof define === "function" && define.amd) {
define(["react"], factory);
} else if (typeof exports === "object") {
module.exports = factory(require("react"));
} else {
root.Title = factory(root.React);
}
}(this, function (React) {
return function Title({ text }) {
// importing dependencies
import React from "react";
// exporting
export default function Title({ text }) {
return React.createElement("h1", null, text);
}
# Create a new package
$ mkdir test-esm
$ cd test-esm
$ npm init -y
# make sure you are using Node 14+
# if you don't have nvm, check this out https://github.com/nvm-sh/nvm#install--update-script
$ nvm install 14
# install react and react-dom