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
# Paste your OpenAI API Key here | |
export OPENAI_API_KEY="sk-..." | |
# Display colors | |
RED='\033[0;31m' | |
NC='\033[0m' # No Color | |
# GPT function | |
function gpt { | |
set +o nomatch # disable nomatch option |
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
# place this after nvm initialization! | |
autoload -U add-zsh-hook | |
load-nvmrc() { | |
local node_version="$(nvm version)" | |
local nvmrc_path="$(nvm_find_nvmrc)" | |
if [ -n "$nvmrc_path" ]; then | |
local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")") | |
if [ "$nvmrc_node_version" = "N/A" ]; then |
Los encuentros sincrónicos (videollamada) son los Jueves de 9 a 10hs.
Ingresar acá: https://meet.google.com/rmh-dgwy-bru
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
var Twit = require('twit') | |
var T = new Twit({ | |
consumer_key: '***', | |
consumer_secret: '***', | |
access_token: '***', | |
access_token_secret: '***', | |
timeout_ms: 60*1000, | |
}) |
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
import { Component, Input, ViewChild, AfterViewInit, ElementRef } from '@angular/core'; | |
import { Router } from '@angular/router'; | |
import { markdown } from 'markdown'; | |
@Component({ | |
selector: 'markdown', | |
template: `<div [innerHtml]="html" #root></div>` | |
}) | |
export class MarkdownComponent implements AfterViewInit { | |
@ViewChild('root') root: ElementRef; |
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
#!/usr/bin/env node | |
// Save hook under `project-root/hooks/before_prepare/` | |
// | |
// Don't forget to install xml2js using npm | |
// `$ npm install xml2js` | |
var fs = require('fs'); | |
var xml2js = require('xml2js'); |
NewerOlder