Skip to content

Instantly share code, notes, and snippets.

View MickaelBaye's full-sized avatar

Mickaël Bayé MickaelBaye

View GitHub Profile
@MickaelBaye
MickaelBaye / pom.xml
Last active December 15, 2015 23:29
[MAVEN] POM with Java execution goal
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example.application</groupId>
<artifactId>application</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>application</name>
@MickaelBaye
MickaelBaye / Foo.java
Last active December 18, 2015 15:29
[Java] Java Class with java.util.logging.Logger initialization
import java.io.IOException;
import java.util.logging.Logger;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.SimpleFormatter;
public class Foo {
private static Logger logger ;
@MickaelBaye
MickaelBaye / mit-license.txt
Last active December 21, 2015 19:38
MIT License
The MIT License (MIT)
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@MickaelBaye
MickaelBaye / manifest.json
Created January 22, 2014 13:01
Google Chrome manifest.json
{
"name": "Name",
"description": "Description",
"version": "0.1",
"app": {
"background": {
"scripts": ["background.js"]
}
}
}
@MickaelBaye
MickaelBaye / background.js
Created January 22, 2014 13:03
Google Chrome background.js
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
'bounds': {
'width': 400,
'height': 500
}
});
});

2.0.0-rc.1 (2016-05-03)

Known Issues

*** SECURITY WARNING *** Contextual escaping is not yet implemented in Angular 2. This will be fixed in the upcoming RC. In the meantime make sure to correctly escape all values that go into the DOM. *** SECURITY WARNING ***

@MickaelBaye
MickaelBaye / index.html
Created August 29, 2018 08:24
Tensorflow.js Simple Example
<html>
<head>
<!-- Load TensorFlow.js -->
<!-- Get latest version at https://github.com/tensorflow/tfjs -->
<!-- From https://dzone.com/articles/getting-started-with-tensorflowjs -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.11.2"></script>
</head>
<body>
<div id="output_field"></div>
</body>
@MickaelBaye
MickaelBaye / index.html
Created February 26, 2019 18:49
MongoDB Stitch Basic Blog tutorial
<html>
<head>
<script src="https://s3.amazonaws.com/stitch-sdks/js/bundles/4/stitch.js"></script>
<script>
// Initialize the App Client
const client = stitch.Stitch.initializeDefaultAppClient("<APP-ID>");
// Get a MongoDB Service Client
const mongodb = client.getServiceClient(
stitch.RemoteMongoClient.factory,
"mongodb-atlas"
@MickaelBaye
MickaelBaye / Dockerfile
Created April 29, 2019 12:05
MuleSoft Standalone 4.1.1 Dockerfile
FROM openjdk:8
MAINTAINER mickael.baye@gmail.com
# MuleSoft EE installation:
# This line can reference either a web url (ADD), network share or local file (COPY)
ADD https://repository-master.mulesoft.org/nexus/content/repositories/releases/org/mule/distributions/mule-standalone/4.1.1/mule-standalone-4.1.1.tar.gz /opt/
@MickaelBaye
MickaelBaye / template.sh
Created May 21, 2019 14:49
Template for Bash scripts
#!/bin/bash
## DESCRIPTION:
## AUTHOR: $USER_FULLNAME
declare -r SCRIPT_NAME=$(basename "$BASH_SOURCE" .sh)
## exit the shell(default status code: 1) after printing the message to stderr
bail() {