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
"data:image/gif;base64,R0lGODlh0AKWAfcIAAAAAAAAAgEAAAAAAQEAAQEBAAUAAQMBAgMAAQgAARAAAQoDBQwDAhYGAxQEAAwAAAoCABkIBRIJDB0ODhkJCCYNDDEaGU8sHjckH143JohgTGhCO3BYSKtyV6qKagwFCBwEADgRAEYYBC0IA0UNAiEHAxQAASYLBiAJACUEADYaCjAUCigPA3o5FoI+JR0AAUogGTQNBjYSA08kD5hSMDEKACEAATEZEm83FigPADQODIdLJkoXDmEpGmElDlMaBGwkA4pDF2AjBLppMZZGIlAiBmMuBbNuPqlYJKtXMMCFOKtkJF4XApU8C3ApDog3E4k8BZhCDnYsHJ5RIzAAALBSIX8rDncrFMRwOXoxBIcwA1MQAqZIIXslA6M8CmE2GGM5L4hQOYZLMG9FMKBZPsRzSG89JqtlMatjQcuWTsOKTrKGUtS7lLBwSjIEAG0ZApkvCOnbvMSrjN6tUs2HOapiELlhI51KEKJREc2IJr+FIshtJNN1ON+QOcJsE3AvBapXEd+aKK1LDdaAL5s3CcVgIuqsVt6ZTdSaT8uCTMWWad2IQ92KUdaQOeqZROmfU8dtL9F3Rauah/bDZ+q+V+qrRNBnEOqtOvWkTdZsI+eLOrxaEdh1L8NhEt+IKNaRJ/rMTqhDC7BRD+qaL+qpKPm8Pfi8L96AJspbDthsEdSDStSZbeGqdtazcPi2W+iPSfatWd6BNvSaSrtHC/27af3Zfu7OcvbUcfisSPnBWv3VcfWYON13JOmJLvq+RfipOb5UDfehL/WhJOmFHr1PDOJyFPvMW/3VZ/zmgvnkcv3Meu2xZuKkZe24duPCb+PIkf3HbPbAcPq6TvXDfvWzZvSMJ+3SkPbXlfbVhPvZW/zyofztkf7lcvbnpP3Phvvjkf3zrf7pqP7onf3akfvoo/7svPTuvvv3z/70uv7xv/74wf38y/vzwfv3v/vtvPbxv/389v333P740P70y/jxv/3 |
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 os | |
import fnmatch | |
rootPath = '/' | |
pattern = '*.mp3' | |
for root, dirs, files in os.walk(rootPath): | |
for filename in fnmatch.filter(files, pattern): | |
print(os.path.join(root, filename)) |
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
// Initialize the local directory as a Git repository. | |
git init | |
// Add the files in your new local repository. This stages them for the first commit. | |
git add . | |
// Commit the files that you've staged in your local repository. | |
git commit -m "your message" | |
// Sets the new remote |
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 random | |
game = ["rock", "scissors", "paper"] | |
human_val = False | |
print("enter rock, scissors or paper") | |
while human_val == False: | |
human_val = input() | |
computer_val = random.choice(game) |
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
#1 create a function that takes a string and returns the number (count) of vowels contained within it. | |
def count_vowels(text): | |
output = 0 | |
for letter in text: | |
if letter in "aeiou": | |
output += 1 | |
print(output) | |
#count_vowels("python") |
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
<script> | |
$: todos = []; | |
var todo = ""; | |
function addTodoOnEnter(e) { | |
if (e.key === "Enter") { | |
addTodo(); | |
} | |
} | |
function addTodo() { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"name": "webpack-stylus", | |
"version": "1.0.0", | |
"scripts": { | |
"start": "webpack-dev-server --open --mode development", | |
"build": "webpack -p" | |
}, | |
"devDependencies": { | |
"babel-core": "^6.26.0", | |
"babel-loader": "^7.1.4", |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
root = true | |
# for all languages | |
[*] | |
indent_style = space | |
indent_size = 2 | |
# for javascript | |
[*.js] | |
indent_style = space |
NewerOlder