This article aims to be a portal to installation and configuration of Cassandra. It is self-contained in the first place. It also provides links to the original articles.
Warning: This article is still under written.
| #!/usr/bin/env python | |
| import math | |
| import sys | |
| from moviepy.editor import AudioClip, VideoFileClip, concatenate_videoclips | |
| # Get average RGB of part of a frame. Frame is H * W * 3 (rgb) | |
| # Assumes x1 < x2, y1 < y2 |
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
| openssl genrsa 2048 > private.pem | |
| openssl req -x509 -new -key private.pem -out public.pem | |
| openssl pkcs12 -export -in public.pem -inkey private.pem -out mycert.pfx |
| #!/usr/bin/python | |
| from mininet.topo import Topo | |
| from mininet.cli import CLI | |
| from mininet.net import Mininet | |
| from mininet.util import dumpNodeConnections | |
| from mininet.log import setLogLevel | |
| from mininet.node import RemoteController |
| /** @jsx React.DOM */ | |
| 'use strict'; | |
| var React = require('react'), | |
| { PropTypes } = React; | |
| var AudioPlayer = React.createClass({ | |
| propTypes: { | |
| source: PropTypes.string.isRequired, | |
| isPlaying: PropTypes.bool.isRequired, |
| <?php | |
| /* | |
| Extension Name: Magento CSV Export Newsletter Subscribers | |
| Description: Export a list of subscribers of the Magento Newsletter in CSV format | |
| Version: 0.1 | |
| License: GPL | |
| Author: TargetIMC | |
| Author URI: http://targetimc.com | |
| */ | |
| /* Paste this file in root directory and run it manually*/ |
| // This assumes your web app is running in a directory which has a subdirectory named 'public/' and | |
| // that there is an 'img/' subdirectory in 'public/' containing an image named 'kitten.jpg' | |
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| ) |
| package main | |
| import ( | |
| "flag" | |
| "log" | |
| "net/http" | |
| "strings" | |
| "unicode" | |
| "io/ioutil" | |
| //"os" | |
| ) |
| // Package float10 implements decimal floating point numbers | |
| // using uint64 to hold the coefficient. | |
| package float10 | |
| import "strconv" | |
| import "errors" | |
| import "strings" | |
| import "math" | |
| // value is -1^sign * coef * 10^exp |