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
package main | |
import "fmt" | |
func main() { | |
count := 15 | |
for i := 1; i <= count; i++ { | |
if i % 15 == 0 { | |
fmt.Print("FizzBuzz ") |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>prop init</Title> | |
<Shortcut>propinit</Shortcut> | |
<Description>Code snippet for an automatically implemented property with init instead of set | |
Language Version: C# 9.0 or higher</Description> | |
<Author>Microsoft Corporation</Author> | |
<SnippetTypes> |
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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"final_space": true, | |
"console_title": true, | |
"console_title_style": "folder", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"horizontal_offset": 0, |
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
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>AAA Pattern</Title> | |
<Shortcut>aaa</Shortcut> | |
<Description>Code snippet for a AAA test pattern</Description> | |
<Author>Fabiano Bizarro</Author> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> |
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 nltk | |
from nltk.stem.lancaster import LancasterStemmer | |
# word stemmer | |
stemmer = LancasterStemmer() | |
# 3 classes of training data | |
training_data = [] | |
training_data.append({"class":"greeting", "sentence":"como vai você?"}) |
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
const jwt = require('jsonwebtoken'); | |
const fs = require('fs'); | |
const PRIVATE_KEY = fs.readFileSync('./cert/private.key'); | |
const PUBLIC_KEY = fs.readFileSync('./cert/cert.pub'); | |
const userInfo = { | |
id: 1, | |
name: 'example' | |
}; |
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 ObservableList = (function () { | |
function ObservableList() { | |
this.list = []; | |
this.events = []; | |
} | |
ObservableList.prototype.triggerEvent = function (eventName, data) { | |
var event = this.events[eventName]; |