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
// 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
// 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
{ | |
"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
InfoQ have recently published a video of a very interesting interview with Rich Hickey, creator of the Clojure programming language. Conveniently, they also offer a transcript of the entire interview, but as is costumary with their transcripts, it is placed inside a very small text field, making for very awkward reading. Here's a copy of that transcript, extracted from http://www.infoq.com/interviews/hickey-clojure | |
Q: We are here at QCon London 2009, with Rich Hickey. Rich, who are you? | |
A: I'm the author of Clojure. I'm an independent developer, contractor, consultant and, | |
basically, a practitioner. I'm not a researcher. | |
Q: What brought you to create a Lisp? Do you go out in the morning and say "Hey, I'm bored! | |
Let's create the Lisp!"? What's the intention behind it? |
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 |
extracted from http://www.infoq.com/interviews/armstrong-peyton-jones-erlang-haskell
I'm Sadek Drobi. I'm here at Erlang Factory with Simon Peyton Jones and Joe Armstrong. Can you please tell us about yourselves and what you've been busy with lately?
JA: I'm Joe Armstrong and I'm at Erlang Factory. I've just been to a very nice talk where Simon has told us about the birth of Haskell and Erlang and how they point along parallel routes solving the same problems. I think we can talk a bit about that, because in your lecture you said things about "We tried that
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
## based on http://pastie.org/private/bclbdgxzbkb1gs2jfqzehg | |
import sublime | |
import sublime_plugin | |
import subprocess | |
class PromptRunExternalCommand(sublime_plugin.WindowCommand): |
NewerOlder