For some reason there is a whole thread on this seemingly simple tasks. In a bootstrapped Laravel 5.4 instance the following worked for me.
npm install font-awesome
| def connect_db(): | |
| """Connects to Database.""" | |
| rv = sqlite3.connect( | |
| app.config['DATABASE'], | |
| detect_types=sqlite3.PARSE_DECLTYPES | sqlite3.PARSE_COLNAMES) | |
| rv.row_factory = sqlite3.Row | |
| return rv | |
| def get_db(): |
For some reason there is a whole thread on this seemingly simple tasks. In a bootstrapped Laravel 5.4 instance the following worked for me.
npm install font-awesome
| import com.launchdarkly.client.LDClient; | |
| import com.launchdarkly.client.LDUser; | |
| import java.io.IOException; | |
| public class Hello { | |
| public static void main(String... args) throws IOException { | |
| LDClient client = new LDClient("YOUR_SDK_TOKEN"); |
| - name: postgres | |
| containers: | |
| - source: circleci-docker | |
| image_name: circleci/postgres-script-enhance | |
| version: ${circleci_postgres_script_enhance} | |
| name: postgres | |
| volumes: | |
| - host_path: /data/circle/postgres/9.5/data | |
| container_path: /var/lib/postgresql/data | |
| env_vars: |
| # Please add your public key below |
| package com.circleci.demojavaspring; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; | |
| import org.springframework.security.config.annotation.web.builders.HttpSecurity; | |
| import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; | |
| import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; | |
| @Configuration |
| <!DOCTYPE html> | |
| <html xmlns:th="http://www.thymeleaf.org"> | |
| <head> | |
| <title>CircleCI Spring Demo</title> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <link rel="stylesheet" th:href="@{/webjars/bootstrap/3.3.7/css/bootstrap.min.css}" /> | |
| <link rel="stylesheet" th:href="@{/css/style.css}" href="../static/css/style.css" /> | |
| </head> |
| FROM ruby:2.3.1 | |
| # Install Node 6.1 | |
| RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - | |
| RUN apt install -y nodejs | |
| # Install other Apt Dependencies | |
| RUN apt update | |
| RUN apt install -y libicu-dev |
| class Test(): | |
| def test(self): | |
| self.test_variable = 10 | |
| def test2(self): | |
| if self.test_variable == 10: | |
| print(self.test_variable) | |
| a = Test() |
| def test(): | |
| test_variable = 10 | |
| return test_variable | |
| def test2(test_variable): | |
| if test_variable == 10: | |
| print(test_variable) | |
| a = test() | |
| test2(a) |