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
import { Pipe, PipeTransform } from '@angular/core'; | |
/** | |
* Used to capitalize the first word of a phrase. The rest of words keeps equal. | |
* Example: {{ 'hello world' | titlelize }} will render 'Hello world' | |
* Example: {{ 'HELLO world' | titlelize }} also will render 'Hello world' | |
*/ | |
@Pipe({ | |
name: 'titlelize' |
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
from pelican import signals | |
from pelican.readers import BaseReader | |
import json | |
class JsonReader(BaseReader): | |
enabled = True | |
def __init__(self, settings): | |
super(JsonReader, self).__init__(settings) |
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
// Add to your keybindings.json | |
[ | |
// To change between code and terminal. | |
{ | |
"key": "ctrl+`", | |
"command": "workbench.action.terminal.toggleTerminal" | |
}, | |
{ | |
"key": "ctrl+`", | |
"command": "workbench.action.terminal.focus", |
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
# -*- coding: utf-8 -*- | |
from fabric.api import local, lcd, run # to run local commands. | |
from fabric.colors import red, blue | |
import time | |
# TODO: REFACTOR and clean methods!!!!! | |
##################################################################### | |
# FABRIC Fabfile. <http://www.fabfile.org/> |