hehehe
This file contains 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
<script lang="ts"> | |
let name: string = "world"; | |
</script> | |
<h1>Hello asdf {name}!</h1> |
This file contains 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
type Setters<Type> = { | |
[Property in keyof Type as `set${Capitalize<string & Property>}`]: (newValue: Type[Property]) => Type & Setters<Type> | |
}; | |
abstract class VO<T> { | |
constructor( | |
public readonly type: any, | |
public readonly excludedProperties: string[], | |
) { | |
return (new Proxy(this, { |
This file contains 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
ui Web | |
/** | |
* Defines a context for the screens | |
* A context is a set of screens that are related to each other. | |
* It can have preconditions that are checked before allowing the user to | |
* navigate to the screens in the context. | |
* | |
* A context can have preconditions that are checked before allowing the user | |
* to navigate to the screens in the context. | |
* |
This file contains 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
Commands: 🎮 🕹 ⚙ ⌨ 🎚 🎛 ⌘ 🚦 🚥 🙏 🙏🏼 ⌃ ^ | |
Receive: 📥 📩 📨 📬 | |
Publish: 📰 📢 | |
Change: ⚡️ | |
Negative: 🚫 🛑 ❌ ❎ ⤫ | |
Warning: ⚠️ 🚨 🚧 ⛔ ⚠️⚠ | |
Notify: 🔔 🎉 📟 📢 📣 🗣 🔊 | |
Mail: 📨 📤 📥 📧 📩 📪 📫 📬 📭 📮 📦 | |
Time: ⏰ ⏱ ⏲ ⏳ ⌛ ⧗ ⧖ | |
Movement: 🚀 🛫 🛬 |
This file contains 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
Mapper.CreateMap<Design, DesignSubmitViewModel>() | |
.ForMember(d => d.Tags, opt => opt.MapFrom(d => d.Tags.Aggregate("", (total, tag) => total + (tag.Name + ", ")).Trim(' ',','))); | |
Mapper.CreateMap<DesignSubmitViewModel, Design>() | |
.ForMember(d => d.Competition, opt => opt.Ignore()) | |
.ForMember(d => d.Tags, opt => opt.MapFrom(d => d.Tags.Split(',').Select(name => new Tag() { Name = name.Trim() }))); |
This file contains 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'; | |
Object.defineProperty(exports, "__esModule", { | |
value: true | |
}); | |
/* tslint:disable no-require-imports */ | |
const fs = require("fs"); | |
const path = require("path"); | |
const glob = require("glob"); | |
const paths = require("path"); | |
const istanbul = require('istanbul'); |
This file contains 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
server { | |
listen 80; | |
server_name ~^(www\.)?(?<project>.+?).dev$; | |
root /projects/$project; | |
index index.html index.htm index.php; | |
charset utf-8; | |
location / { |
This file contains 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
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - | |
sudo apt-get update && sudo apt-get install -y nodejs yarn |
This file contains 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
/* Font Awesome | |
the iconic font designed for use with Twitter Bootstrap | |
------------------------------------------------------- | |
The full suite of pictographic icons, examples, and documentation | |
can be found at: http://fortawesome.github.com/Font-Awesome/ | |
License | |
------------------------------------------------------- | |
The Font Awesome webfont, CSS, and LESS files are licensed under CC BY 3.0: | |
http://creativecommons.org/licenses/by/3.0/ A mention of |