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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> | |
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'"> | |
<link href="./styles.css" rel="stylesheet"> | |
<title>Hello World!</title> | |
</head> | |
<body> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> | |
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'"> | |
<link href="./styles.css" rel="stylesheet"> | |
<title>Call native code via preload.js</title> | |
</head> | |
<body> |
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
{ | |
"basics": { | |
"name": "Bernard Niset", | |
"label": "Senior Frontend Developer (Freelance) at Kensu", | |
"summary": "Senior Software Engineer (Freelance) with a long experience in backend java based services and specialising now in Frontend development with modern JavaScript frameworks (ReactJS, Angular, VueJS). I want to provide the ideal solution that fits best the needs of my customers. \n\nI also have a strong interest in learning Rust (https://www.rust-lang.org/en-US/) (System tools, cli, webassembly).\n\n### Specialties\n\nReactJS/Redux, Javascript, ES6, Typescript, Modern JS (React, Angular, VueJS), Java, JEE, Spring, Hibernate, Web Services (SOAP, RESTFull apis, GraphQL, JAX-WS, JSON), Cloud Computing.", | |
"location": { | |
"city": "Brussels", | |
"countryCode": "BE" | |
}, | |
"website": "https://www.smartobjects.be", |
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
#[macro_use] | |
extern crate lopdf; | |
use std::io::Result; | |
use lopdf::content::{Content, Operation}; | |
use lopdf::{Document, Object, Stream}; | |
pub fn do_it() -> Result<()> { | |
let mut doc = Document::with_version("1.5"); |
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
#![feature(use_extern_macros)] | |
extern crate wasm_bindgen; | |
use std::mem; | |
use wasm_bindgen::prelude::*; | |
#[wasm_bindgen] | |
extern { |
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
#![allow(unused_variables, unused_assignments, unused_mut)] | |
use std::boxed::Box; | |
struct Foo { | |
f: Box<i32>, | |
} | |
// Owner cannot access resource during a mutable borrow - 1 | |
fn main() { |