Skip to content

Instantly share code, notes, and snippets.

@smellslikeml
smellslikeml / visual_anomaly_detection_demo.py
Created Dec 15, 2019
A simple script to perform webcam visual anomaly detection with autoencoders built with Keras
View visual_anomaly_detection_demo.py
#!/usr/bin/python3
from __future__ import absolute_import, print_function
import cv2
import numpy as np
from time import sleep, time
from collections import deque
from tensorflow.keras.models import Model
from tensorflow.keras.optimizers import RMSprop
from tensorflow.keras.layers import Input, Conv2D, MaxPooling2D, UpSampling2D, ZeroPadding2D
View boy.sh
this is a boy test for gist
View gist:0e47462e2893499e4122f0b50ba71628
choco install -y jami seafile-client googlechrome firefox 7zip.install putty.install winscp.install vlc git.install sumatrapdf.install gimp teamviewer curl wget git-fork pgadmin4
View untrusted-lvl6-solution.js
/****************
* drones101.js *
****************
*
* Do you remember, my dear Professor, a certain introductory
* computational rationality class you taught long ago? Assignment
* #2, behavior functions of autonomous agents? I remember that one
* fondly - but attack drones are so much easier to reason about
* when they're not staring you in the face, I would imagine!
View Changed Paths
aarch64-linux hqemu
x86_64-linux hqemu
i686-linux hqemu
View nyt_metoo_2.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 5.
web-scraper-order,name,date,position,reason
1570558971-957,Sam Adams,"Nov. 3, 2017",Director of U.S. branch of the World Resources Institute,"Left his job as the director of the U.S. branch of a think tank after a former staffer said Mr. Adams sexually harassed him when he was the mayor of Portland, Ore. Mr. Adams called the accusations false and said his decision to leave the think tank was unrelated."
1570558971-1075,Israel Horovitz,"Nov. 30, 2017",Playwright and founding artistic director of the Gloucester Stage theater,"Fired after accusations of groping, forcibly kissing and rape. Mr. Horovitz said he recalled events differently but apologized."
1570558971-942,Roy Price,"Oct. 12, 2017",Head of Amazon Studios,Resigned after a Hollywood producer accused him of making unwanted sexual advances.
1570558971-940,Harvey Weinstein,"Oct. 5, 2017","Producer and co-founder, the Weinstein Company","Accused by dozens of women of sexual misconduct ranging from harassment to abuse and rape. He has been criminally charge
View Potential Maintainers
Maintainers:
rickynils: dovecot, dovecot, dovecot, dovecot
fpletz: dovecot, dovecot, dovecot, dovecot
globin: dovecot, dovecot, dovecot, dovecot
peti: dovecot, dovecot, dovecot, dovecot
View Changed Paths
x86_64-linux dovecot_pigeonhole
aarch64-linux dovecot
x86_64-darwin dovecot
aarch64-linux dovecot_pigeonhole
i686-linux dovecot_pigeonhole
x86_64-darwin dovecot_pigeonhole
i686-linux dovecot
x86_64-linux dovecot
View TranscientAndPersistedEntity.java
@Transactional
public Client saveNewClient(ClientDto clientDto) {
Client client = new Client();
client.setName(clientDto.getName());
client.setEmail(clientDto.getEmail());
Client saved = clientRepository.save(client);
return saved;
}
You can’t perform that action at this time.