Skip to content

Instantly share code, notes, and snippets.

Charles Bochet charlesBochet

  • LuckeyHomes
  • Paris
Block or report user

Report or block charlesBochet

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ner_french.py
# coding: utf-8
import nltk
from nltk.tag.stanford import StanfordNERTagger
# Optional
import os
java_path = "/usr/lib/jvm/java-8-oracle"
os.environ['JAVA_HOME'] = java_path
View php-fpm-Dockerfile-71
#
#--------------------------------------------------------------------------
# Image Setup
#--------------------------------------------------------------------------
#
# To edit the 'php-fpm' base Image, visit its repository on Github
# https://github.com/Laradock/php-fpm
#
# To change its version, see the available Tags on the Docker Hub:
# https://hub.docker.com/r/laradock/php-fpm/tags/
View data.js
export default {
pictures: [
{
'id': 0,
'url': 'https://25.media.tumblr.com/tumblr_m40h4ksiUa1qbyxr0o1_400.gif',
'comment': 'A cat game',
'info': 'Posted by Kevin on Friday'
},
{
'id': 1,
View service-worker.js
"use strict";
var precacheConfig = [
["index.html", "218187414cc275eaa7bb37f098e0fc92"],
["static/css/app.d1a62a5e00430713ca6ccd67cb5fd580.css", "d1a62a5e00430713ca6ccd67cb5fd580"],
["static/js/app.04ef0c51d385926ea560.js", "13cfbbcfd7077380247bbbb6d9731463"],
["static/js/manifest.2d92f59992387f01763b.js", "00451931f39fbee842952a5d349f22a6"],
["static/js/vendor.0140506021c3a9c89dd2.js", "27f61c490b1b8af1d621b16afdd174bb"]
];
...
View computePi.js
function computePi() {
document.getElementById('pi').innerHTML = (4 * atan(1/5) - atan(1/239)) * 4
}
function atan(x) {
var result = x;
var xSquared = x * x;
var term = x;
var divisor = 1;
View computePi.js
function computePi() {
document.getElementById('pi').innerHTML = (4 * atan(1))
}
function atan(x) {
var result = x;
var xSquared = x * x;
var term = x;
var divisor = 1;
View computePi.js
function computePi() {
document.getElementById('pi').textContent = (4 * Math.atan(1)).toPrecision(100)
}
View computePi.js
function computePi() {
document.getElementById('pi').textContent = 4 * (Math.atan(1))
}
View ner_french.py
# coding: utf-8
import nltk
from nltk.tag.stanford import StanfordNERTagger
# Optional
import os
java_path = "/usr/lib/jvm/java-8-oracle"
os.environ['JAVA_HOME'] = java_path
View computePi.js
var precision = 300
Big.DP = precision
function computePi() {
var bigOne = new Big(1)
document.getElementById('pi').innerHTML =
((atan(bigOne.div(5)).times(4)).minus(atan(bigOne.div(239)))).times(4)
.toPrecision(precision)
}
You can’t perform that action at this time.