brew install youtube-dlhere's for fast ai's course:
| <div class="world"></div> | |
| <div class="title"> | |
| <p>Looking at these waves for 1 minute<br/>will bring you 56% more serenity*</p> | |
| <p class="remark">* According to a very serious and reliable study conducted by myself.</p> | |
| <div class="credits"> | |
| <a href="https://codepen.io/Yakudoo/" target="blank">my other codepens</a> | <a href="https://www.epic.net" target="blank">epic.net</a></div> | |
| </div> |
| from keras.layers import Dense | |
| from keras.layers import Flatten | |
| from keras.layers import Conv2D | |
| from keras.layers import MaxPooling2D | |
| from keras.layers import Dropout | |
| from keras.models import Sequential | |
| def vgg16(): | |
| model = Sequential() | |
| model.add(Conv2D(64, (3, 3), padding='same', activation='relu', input_shape=(224, 224, 3))) |
| """ | |
| Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
| BSD License | |
| """ | |
| import numpy as np | |
| # data I/O | |
| data = open('input.txt', 'r').read() # should be simple plain text file | |
| chars = list(set(data)) | |
| data_size, vocab_size = len(data), len(chars) |
| def fizzbuzz(n): | |
| print "\n".join([('Fizz'*(not i%3) + 'Buzz'*(not i%5)) if ((not i%3) or (not i%5)) else str(i) for i in xrange(1, n+1)]) |
| def validParentheses? str | |
| a = [] | |
| str.each_char do |x| | |
| if x == '(' | |
| a.push x | |
| elsif x == ')' | |
| return false if a.pop == nil | |
| end | |
| end | |
| a.empty? |
| public boolean isUnique(string str) { | |
| for(int i=0; i<str.size(); i++){ | |
| for(int j=0; j<str.size(); j++) { | |
| if(i==j) continue; | |
| else if(str.charAt(j) == str.charAt(i)) return false; | |
| } | |
| } | |
| return true; | |
| } |
| unsigned int i; | |
| for(i=100; i<=0; --i) | |
| print(i) |
| public boolean inUnique(string str) { | |
| boolean[] chars = new boolean[256]; // Size only works with ASCII, increase otherwise. | |
| for(int i=0; i<str.size(); i++){ | |
| if(chars[str.charAt(i)]) return false; | |
| chars[str.charAt(i)] = true; | |
| } | |
| return true; | |
| } |
| public void shuffleCards (int[] cards){ | |
| int temp, index; | |
| for (int i = 0; i < cards.length; i++){ | |
| index = (int) (Math.random() * (cards.length - i)) + i; | |
| temp = cards[i]; | |
| cards[i] = cards[index]; | |
| cards[index] = temp; | |
| } | |
| } |