A Pen by Brightcove Learning Services on CodePen.
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
// This short JavaScript fragment lets you export your Netflix list as a JSON | |
// file. Just navigate to the https://www.netflix.com/browse/my-list page, | |
// open your browser's Developer Tools, select the Console tab and paste this | |
// fragment. After it has run, you should be able to copy the output and save it | |
// into a file with the ".json" extension. | |
let movies = {}; | |
document | |
.querySelectorAll(".slider-item .slider-refocus") |
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
// When viewing your Netflix activity at https://www.netflix.com/MoviesYouveSeen | |
// there's a "Download All" button at the bottom that allows you to export | |
// your entire viewing history as a CSV file. | |
// Unfortunately there is no equivalent button to export your ratings. | |
// This short JavaScript fragment lets you export your ratings as a JSON file. | |
// Just navigate to the ratings page, open your browser's Developer Tools, | |
// select the Console tab and paste this fragment. After it has run, you should | |
// be able to copy the output and save it into a file with the ".json" | |
// extension. |
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
{ | |
"bd": [ | |
"/factory/drums/brkbts/bd barrel", | |
"/factory/drums/chilled/bd focus", | |
"/factory/drums/colder/bd foley", | |
"/factory/drums/discoed/bd baum 1", | |
"/factory/drums/downer/bd cool 1", | |
"/factory/drums/energy/bd carry", | |
"/factory/drums/funkier/bd round", | |
"/factory/drums/future/bd cellar", |
Hello software developers,
Please check your code to ensure you're not making one of the following mistakes related to cryptography.
- Writing your own home-grown cryptography primitives (For example: Mifare Classic)
- Exception: For the sake of learning, but don't deploy it in production.
- Using a fast hash function (e.g. MD5, SHA256) for storing passwords. Use bcrypt instead.
- Not using a cryptographically secure random number generator
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
if [ -f ~/.bashrc ]; then | |
source ~/.bashrc | |
fi |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
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
var warning = function () { | |
console.log("I didn't understand you, please play again.") | |
} | |
var win = function () { | |
console.log("You win!!!!") | |
} | |
var lose = function () { | |
console.log("You lose :-(") | |
} | |
var fight = function () { |
Upgrade Django from 1.1 to 1.5.1. This highlights some of the issues that one may encounter when updating Django. It's not possible to cover every case, but this should provide a good general starting point.
Django now supports multiple databases and changes are needed to how the database connections are defined.
- Changed in Django 1.2
- Change Required by Django 1.4
- Source:
I hereby claim:
- I am olifante on github.
- I am olifante (https://keybase.io/olifante) on keybase.
- I have a public key whose fingerprint is 4A3A 7EC3 825E A966 8011 8FD4 DF27 FD81 9ADF E21B
To claim this, I am signing this object:
NewerOlder