Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
@Component({ | |
selector: 'chart', | |
template: '<svg></svg>' | |
}) | |
class ChartComponent implements OnInit { | |
constructor(private el: ElementRef) {} | |
ngOnInit() { | |
const svg = d3.select(this.el.nativeElement) | |
.attr('width', '480px') |
// include AsRust and IntoRustByName traits to provide an ability to represent | |
// column values as simple Rust values. | |
use cdrs::types::{AsRust, IntoRustByName}; | |
struct Author { | |
first_name: String, | |
second_name: String | |
} | |
struct Message { |
use cdrs::consistency::Consistency; | |
use cdrs::frames::Frame; | |
// establish session first | |
let select_query = String::from("SELECT * FROM db.messages;"); | |
let res_frame: Frame = try!(session.query( | |
select_query, // CQL query string | |
Consistency::One, // consistency | |
None, // query values |
use cdrs::client::{CDRS, Credentials, Session}; | |
use cdrs::{error as cdrs_error}; | |
use cdrs::authenticators::{Authenticator, PasswordAuthenticator}; | |
use cdrs::compression::Compression; | |
fn main() { | |
let addr = "127.0.0.1:9042"; | |
let authenticator = PasswordAuthenticator::new("user", "password"); | |
let mut session = new_session(addr, authenticator).unwrap(); | |
extern crate cdrs; |
[dependencies] | |
cdrs = "0.4.0" |
import { Component, Input } from '@angular/core'; | |
import { d3 } from 'd3'; | |
@Component({ | |
selector: 'bar-chart', | |
template: `<svg [attr.width]="width" [attr.height]="height"></svg>` | |
}) | |
export class BarChartComponent { | |
@Input() frequencies: {[key:string]:number;}; |