- Detect secrets in code
- Identify secrets committed to version control
- Flag hardcoded credentials
- Identify missing authentication checks
- Detect improper authorization patterns
This gist summarises the tensorflow related steps I took to get the above combo working.
When its all tested in c++ I'll update the instructions fully (and add anything I forgot below).
But in summary ( with the current master dd06643cf098ed362212ce0f76ee746951466e81 ):
I have uploaded the pip wheel which I believe should work if you have the same setup but no promises (built for compute capability 3.5, 5.2, 6.0 and named tensorflow-gpu).
Install with (not sure dropbox allows this direct linking):
| def weighted_log_loss(yt, yp): | |
| '''Log loss that weights false positives or false negatives more. | |
| Punish the false negatives if you care about making sure all the neurons | |
| are found and don't mind some false positives. Vice versa for punishing | |
| the false positives. Concept taken from the UNet paper where they | |
| weighted boundary errors to get cleaner boundaries.''' | |
| emphasis = 'fn' | |
| assert emphasis in ['fn', 'fp'] | |
| m = 2 |
A simple App using Vue.js & Firebase with Auth.
See the DEMO.
| <script> | |
| // 5 octaves + 9 semitones under A440Hz is Midi Key Zero | |
| const MidiKeyZero = 440/(Math.pow(2, 5) * Math.pow(2, 9/12)) ; | |
| const ctx = new AudioContext(); | |
| const oscis = new Map(); | |
| const volumeCtrl = ctx.createGain(); | |
| volumeCtrl.gain.value = 0; | |
| volumeCtrl.connect(ctx.destination); |
| // Implements stale-while-revalidate | |
| self.addEventListener('fetch', event => { | |
| const cached = caches.match(event.request); | |
| const fetched = fetch(event.request); | |
| const fetchedCopy = fetched.then(resp => resp.clone()); | |
| // Call respondWith() with whatever we get first. | |
| // If the fetch fails (e.g disconnected), wait for the cache. | |
| // If there’s nothing in cache, wait for the fetch. | |
| // If neither yields a response, return a 404. |
| // Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
| // http://creativecommons.org/publicdomain/zero/1.0/ | |
| (function (win, doc) { | |
| 'use strict'; | |
| if (!win.XMLHttpRequest || !win.FormData || !win.addEventListener || !doc.querySelectorAll) { | |
| // doesn't cut the mustard. | |
| return; | |
| } | |
| function hijaxForm (formElement) { | |
| var progressBar; |