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
require 'yaml' | |
require 'parameterize' | |
require 'open-uri' | |
require 'fileutils' | |
idustries = YAML.load_file('import/v5n_novatec_idustries.yml') | |
idustries.each_with_index do |idustry, index| | |
unless idustry['state'] == -2 | |
FileUtils::mkdir_p "content/idustries/#{idustry['titulo'].parameterize}" |
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
|
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 the Javascript "in" operator for automatic type inference | |
// https://egghead.io/lessons/typescript-use-the-javascript-in-operator-for-automatic-type-inference-in-typescript | |
interface Admin { | |
id: string; | |
role: string; | |
} | |
interface User { | |
email: string; |