Skip to content

Instantly share code, notes, and snippets.

@gistlyn
gistlyn / action\alarm.svg
Created Jun 16, 2019
Action Material Icons
View action\alarm.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View AzureCliAssignments
References
http://jsonviewer.stack.hu/
http://jmespath.org/
1. Write azure cli to display names of resource groups
2. Write azure cli to display locations of resource groups
3. write azure cli to display names of subnets
@a9
a9 / chrome-dark.css
Created Jun 16, 2019
chrome prefers-color-scheme dark
View chrome-dark.css
@media (prefers-color-scheme: dark) {
body {
color: white;
background-color: black;
}
}
@sunman91
sunman91 / PY0101EN-5-2-Numpy2D.ipynb
Created Jun 16, 2019
Created on Cognitive Class Labs
View PY0101EN-5-2-Numpy2D.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Adilmar
Adilmar / chat-bot-response1.py
Last active Jun 16, 2019
Chatbot response 1
View chat-bot-response1.py
# NLP
import nltk
from nltk.stem.lancaster import LancasterStemmer
stemmer = LancasterStemmer()
# importando bibliotecas
import numpy as np
import tflearn
import tensorflow as tf
import random
View GetLinePositions.cs
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
public class HexPerimeter
{
//Convert the cell perim to a list of world coords on the hex border around the cells
public static List<Vector3> GetLinePositions(List<HexCell> cellPerimeter){
var ret = new List<Vector3>();
@saru2017
saru2017 / misc02.txt
Last active Jun 16, 2019
CTF: misc02
View misc02.txt
Vm0wd2QyUXlVWGxWV0d4V1YwZDRWMVl3WkRSV01WbDNXa1JTVjAxV2JETlhhMUpUVmpBeFYySkVUbGhoTVVwVVZtcEJlRll5U2tWVWJHaG9UVlZ3VlZadGNFSmxSbGw1VTJ0V1ZXSkhhRzlVVmxaM1ZsWmFjVkZ0UmxSTmJFcEpWbTEwYTFkSFNrZGpTRUpYWVRGd2FGcFdXbUZrUlRGVlZXeFNUbUY2UlRGV2EyUXdZekpHYzFOdVVtaFNlbXhXVm1wT1QwMHhjRlpYYlVaclVqQTFSMWRyV2xOVWJVcEdZMFZ3VjJKVVJYZFdha1pYWkVaT2MxZHNhR2xTTW1oWlYxZDRiMkl5Vm5OVmJGWlRZbFZhY1ZadGRHRk5SbFowWlVaT1ZXSlZjRWRaTUZaM1ZqSktWVkpZWkZwV1JWcHlWVEJhVDJOc2NFaGpSbEpUVmxoQ1dsWXhXbE5TTWxGNVVtdGthbEp0VWxsWmJGWmhZMnhXY1ZKdFJsUlNiR3cxVkZaU1UxWnJNWEpqUld4aFUwaENTRlpxU2tabFZsWlpXa1p3YkdFelFrbFhXSEJIVkRKU1YxWnVUbGhpVjJoeldXeG9iMkl4V25STldHUlZUV3RzTlZWdGRHdGhiRXAwVld4c1dtSkdXbWhaTW5oWFl6RldjbHBHWkdsU2JrSmFWMnhXWVZReFdsaFRiRnBZVmtWd1YxbHJXa3RUUmxweFUydGFiRlpzV2xwWGExcDNZa2RGZWxGcmJGaFhTRUpJVmtSS1UxWXhXblZWYldoVFlYcFdlbGRYZUc5aU1XUkhWMjVTVGxOSFVuTlZha0p6VGtaVmVXUkhkRmhTTUhCSlZsZDRjMWR0U2tkWGJXaGFUVzVvV0ZreFdrZFdWa3B6VkdzMVYwMVZiekZXYlhCTFRrWlJlRmRzYUZSaVJuQnhWV3hrVTFsV1VsWlhiVVpPVFZad2VGVXlkREJXTVZweVkwWndXR0V4Y0hKWlZXUkdaVWRPUjJKR2FHaE5WbkJ2
View a5.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@DrEngi
DrEngi / build.gradle
Created Jun 16, 2019
New build.gradle. Build by using ./gradlew shadowjar
View build.gradle
plugins {
id 'com.github.johnrengelman.shadow' version '5.0.0'
id 'java'
}
group 'com.okayd'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
@manikandanraji
manikandanraji / algorithms.js
Created Jun 16, 2019
Algorithm course notes - Colt Steele
View algorithms.js
// Find the number of characters in a string
function charCount(str) {
let result = {};
for(let char of str) {
if(/[a-z0-9]/.test(char)) { // includes only lowercase a,b....z and 0,1....9
result[char] ? result[char]++ : result[char] = 1;
}
}
return result;
}
You can’t perform that action at this time.