Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
| import datetime | |
| import glob | |
| import os | |
| from datetime import datetime | |
| from pathlib import Path | |
| import pandas as pd | |
| from pikepdf import Pdf | |
| from tabula.io import read_pdf |
| const generatePromise = (valueGeneratorFn, delay = 1) => { | |
| return new Promise((resolve) => { | |
| setTimeout(() => resolve(valueGeneratorFn()), delay); | |
| }); | |
| }; | |
| const getFirstDataSetAsync = async (input) => { | |
| return generatePromise(() => input * 1); | |
| }; |
#Getting started with git-svn
git-svn is a git command that allows using git to interact with Subversion repositories.git-svn is part of git, meaning that is NOT a plugin but actually bundled with your git installation. SourceTree also happens to support this command so you can use it with your usual workflow.
Reference: http://git-scm.com/book/en/v1/Git-and-Other-Systems-Git-and-Subversion
##Cloning the SVN repository
You need to create a new local copy of the repository with the command
| // Enable component-scanning and auto-configuration with @SpringBootApplication Annotation | |
| // It combines @Configuration + @ComponentScan + @EnableAutoConfiguration | |
| @SpringBootApplication | |
| public class FooApplication { | |
| public static void main(String[] args) { | |
| // Bootstrap the application | |
| SpringApplication.run(FooApplication.class, args); | |
| } | |
| } |
Picking the right architecture = Picking the right battles + Managing trade-offs
| /* | |
| * This class is made available under the Apache License, Version 2.0. | |
| * | |
| * See http://www.apache.org/licenses/LICENSE-2.0.txt | |
| * | |
| * Author: Mark Lee | |
| * | |
| * (C)2013 Caprica Software (http://www.capricasoftware.co.uk) | |
| */ |
| package test | |
| import scala.reflect.runtime.universe._ | |
| object ReflectionHelpers extends ReflectionHelpers | |
| trait ReflectionHelpers { | |
| protected val classLoaderMirror = runtimeMirror(getClass.getClassLoader) |
| [info] Loading settings for project scastie7634183376889156235-build from plugins.sbt ... | |
| [info] Loading settings for project scastie7634183376889156235 from build.sbt ... | |
| Downloading http://scala-webapps.epfl.ch:8081/artifactory/scastie-ivy/com.sksamuel.avro4s/avro4s-core_2.11/3.0.0-RC2/ivys/ivy.xml.sha1 | |
| Downloading http://scala-webapps.epfl.ch:8081/artifactory/scastie-ivy/com.sksamuel.avro4s/avro4s-core_2.11/3.0.0-RC2/ivys/ivy.xml | |
| Downloaded http://scala-webapps.epfl.ch:8081/artifactory/scastie-ivy/com.sksamuel.avro4s/avro4s-core_2.11/3.0.0-RC2/ivys/ivy.xml | |
| Downloaded http://scala-webapps.epfl.ch:8081/artifactory/scastie-ivy/com.sksamuel.avro4s/avro4s-core_2.11/3.0.0-RC2/ivys/ivy.xml.sha1 | |
| Downloading http://scala-webapps.epfl.ch:8081/artifactory/scastie-maven/com/sksamuel/avro4s/avro4s-core_2.11/3.0.0-RC2/avro4s-core_2.11-3.0.0-RC2.pom | |
| Downloading http://scala-webapps.epfl.ch:8081/artifactory/scastie-maven/com/sksamuel/avro4s/avro4s-core_2.11/3.0.0-RC2/avro4s-core_2.11-3.0.0-RC2.pom.sha1 | |
| Downloaded http://s |
| /* | |
| Overview | |
| -------- | |
| To run a query using anorm you need to do three things: | |
| 1. Connect to the database (with or without a transaction) | |
| 2. Create an instance of `anorm.SqlQuery` using the `SQL` string interpolator | |
| 3. Call one of the methods on `SqlQuery` to actually run the query |