wget -O - https://nightly.odoo.com/odoo.key | apt-key add -
echo "deb http://nightly.odoo.com/9.0/nightly/deb/ ./" >> /etc/apt/sources.list
apt-get update && apt-get install odoo
apt-get upgradeDownload & install wkhtmltox:
| @groovy.transform.Canonical | |
| class Phrase { | |
| String phrase | |
| Map wordCount() { | |
| words.collectEntries { [ (it): occurrences(it) ] } | |
| } | |
| List getWords() { |
| @Grab('org.hsqldb:hsqldb:2.3.3') | |
| @GrabConfig(systemClassLoader=true) | |
| import groovy.sql.* | |
| def sql = Sql.newInstance('jdbc:hsqldb:mem:yourDB', 'org.hsqldb.jdbcDriver') | |
| sql.execute ''' | |
| CREATE TABLE IF NOT EXISTS Author ( | |
| id INTEGER GENERATED BY DEFAULT AS IDENTITY, |
| MacBook-Pro-de-mac:~ mac$ mysql -uroot | |
| Welcome to the MariaDB monitor. Commands end with ; or \g. | |
| Your MariaDB connection id is 25 | |
| Server version: 10.1.32-MariaDB Source distribution | |
| Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. | |
| Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. | |
| MariaDB [(none)]> show databases; |
| @Grab('org.jgrapht:jgrapht-core:1.3.1') | |
| import org.jgrapht.* | |
| import org.jgrapht.graph.* | |
| import org.jgrapht.io.* | |
| import org.jgrapht.traverse.* | |
| class Main { | |
| static void main(args){ |
| /** | |
| * An implementation of the Bellman-Ford algorithm. The algorithm finds the shortest path between a | |
| * starting node and all other nodes in the graph. The algorithm also detects negative cycles. | |
| * Original Source: https://github.com/williamfiset/Algorithms/blob/master/src/main/java/com/williamfiset/algorithms/graphtheory/BellmanFordEdgeList.java | |
| */ | |
| @groovy.transform.Canonical | |
| class Edge { | |
| int from, to | |
| double cost |
| #!/bin/bash | |
| ################################################################################ | |
| # Script for installing Odoo on Ubuntu 14.04, 15.04 and 16.04 (could be used for other version too) | |
| # Author: Yenthe Van Ginneken | |
| #------------------------------------------------------------------------------- | |
| # This script will install Odoo on your Ubuntu 14.04 server. It can install multiple Odoo instances | |
| # in one Ubuntu because of the different xmlrpc_ports | |
| #------------------------------------------------------------------------------- | |
| # Make a new file: | |
| # sudo nano odoo-install.sh |
| # Create a file "dataset.csv" with these values (don't forget to remove the '#' before each line): | |
| # ID,Height,time_of_day,resolution | |
| # 272,1.567925,1.375000,0.594089 | |
| # 562,1.807508,1.458333,0.594089 | |
| # 585,2.693542,0.416667,0.594089 | |
| # 610,1.036305,1.458333,0.594089 | |
| # 633,1.117111,0.416667,0.594089 | |
| # 658,1.542407,1.458333,0.594089 | |
| # 681,1.930844,0.416667,0.594089 | |
| # 802,1.505548,1.458333,0.594089 |
| #!/Users/username/.conda/envs/py3/bin/python | |
| # remove the 1st line if you don't want to use conda's python env "py3" in this case | |
| import requests | |
| from bs4 import BeautifulSoup | |
| import re | |
| import urllib | |
| import ntpath, sys | |
| import time, datetime | |
| # Copy video id from wistia player (right click then copy link) and paste it here |
| # This script is inspired from: https://github.com/kigaita/PsvDecryptCore | |
| # It allows you to decrypt psv video files for online developer training website | |
| # The original code was written with .NET for Windows users, this one with Python tested for Mac users. | |
| # *** Disclaimer **** | |
| # Please only use it for your convenience so that you can watch the courses on your devices offline or for educational purposes. | |
| # Piracy is strictly prohibited. Decrypted videos should not be uploaded to open servers, torrents, or other methods of mass distribution. Any consequences resulting from misuse of this tool are to be taken by the user. | |
| # packages you may need to install: | |
| # pip install python-magic |