Done on Linux (Ubuntu tested)
cd $HOME
virtualenv --python=/usr/bin/python2.7 pgadmin4
source pgadmin4/bin/activate
>>> def dummy(): | |
... print "You won't see me when created" | |
... yield 1 | |
... print "You didn't see me" | |
... yield 2 | |
... print "Bye bye" | |
... | |
>>> gen = dummy() | |
>>> gen.next() | |
You won't see me when created |
# định nghĩa 1 function không nhận đầu vào, luôn trả về True, gán nó cho biến ``f`` | |
In [1]: f = lambda: True | |
# gọi hàm này và nó trả về giá trị True | |
In [2]: f() | |
Out[2]: True | |
# định nghĩa 1 function trả về số lớn hớn số đã cho 1 đơn vị, gán function này cho biến f | |
In [3]: f = lambda x: x + 1 | |
# hàm này cần 1 argument, câu gọi hàm dưới đây bị thiếu argument | |
In [4]: f() | |
--------------------------------------------------------------------------- |
import numpy as np | |
X = np.array([[-1, -1], [-2, -1], [-3, -2], [1, 1], [2, 1], [3, 2]]) | |
Y = np.array([1, 1, 1, 2, 2, 2]) | |
from sklearn.naive_bayes import GaussianNB | |
clf = GaussianNB() | |
clf.fit(X, Y) | |
print(clf.predict([[-0.8, -1]])) | |
clf_pf = GaussianNB() |
RSpec.configure do |config| | |
config.before(:suite) do | |
DatabaseCleaner.clean_with(:truncation) | |
end | |
config.before(:each) do | |
DatabaseCleaner.strategy = :transaction | |
end | |
config.before(:each, js: true) do |
{"lastUpload":"2019-08-28T10:47:28.910Z","extensionVersion":"v3.4.1"} |
def calculation(a, b, operation) | |
operation.call(a, b) | |
end | |
puts calculation(5, 6, lambda { |a, b| a + b }) # addition | |
# OR puts calculation(5, 6, ->(a, b) { a + b }) | |
# OR puts calculation(5, 6, Proc.new{ |a, b| a + b }) | |
# OR puts calculation(5, 6, proc{ |a, b| a + b }) | |
puts calculation(5, 6, lambda { |a, b| a - b }) # subtraction |
// ==UserScript== | |
// @name HVT | |
// @namespace https://tranghv.blogspot.com/ | |
// @version 0.1 | |
// @description Add Turbo script | |
// @author Tráng Hà Viết | |
// @include http://* | |
// @include https://* | |
// @exclude *mail.google.com/* |
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:900;src:local('Playfair Display Black'),local('PlayfairDisplay-Black'),url(//fonts.gstatic.com/s/playfairdisplay/v11/UC3ZEjagJi85gF9qFaBgIJDIFf5Wheh9SWCUqp--Vvo.woff2)format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:900;src:local('Playfair Display Black'),local('PlayfairDisplay-Black'),url(//fonts.gstatic.com/s/playfairdisplay/v11/UC3ZEjagJi85gF9qFaBgIJulvK9r9ZyXR2Qi4DVS52A.woff2)format('woff2');unicode-range:U+0100-024F,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:900;src:local('Playfair Display Black'),local('PlayfairDisplay-Black'),url(//fonts.gstatic.com/s/playfairdisplay/v11/UC3ZEjagJi85gF9qFaBgIMGhQI7v0ryGuSQ4oDzNyds.woff2)format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2212,U+2215;}@font-f |
Đây là danh sách mật khẩu wifi mình thấy hay được dùng nhất ( ít nhất 8 kí tự). Bạn nên thử theo thứ tự từ trên xuống. 12345678 123456789 88888888 (phát tài) password khongmatkhau hoilamgi hoilamchi 987654321