This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import org.springframework.boot.SpringApplication; | |
| import org.springframework.boot.env.EnvironmentPostProcessor; | |
| import org.springframework.boot.jdbc.DataSourceBuilder; | |
| import org.springframework.core.env.ConfigurableEnvironment; | |
| import org.springframework.core.env.MapPropertySource; | |
| import org.springframework.stereotype.Component; | |
| import javax.sql.DataSource; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # Google Former Coding Interview | |
| # https://techdevguide.withgoogle.com/resources/former-coding-interview-question-word-squares/ | |
| from itertools import product | |
| import re | |
| import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { exec } = require("child_process"); | |
| const { existsSync } = require("fs"); | |
| // -- main -- // | |
| console.log("pid:", process.pid); | |
| getCommits("<dir>") | |
| .then((commits) => console.log(commits)) | |
| .catch(({ stderr }) => console.log(stderr)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import csv | |
| import functools | |
| import math | |
| import operator | |
| import sys | |
| def get_estimate(row): | |
| return float(row["Custom field (Story point estimate)"]) | |
| def get_issues(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-antrun-plugin</artifactId> | |
| <version>1.8</version> | |
| <executions> | |
| <!-- useful to list all the properties specified --> | |
| <execution> | |
| <phase>validate</phase> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BEGIN | |
| FOR c IN ( select owner as schema_name, table_name from sys.all_tables where table_name like '--PREFIX--' ) | |
| LOOP | |
| EXECUTE IMMEDIATE ' SELECT * FROM ' || c.table_name; | |
| END LOOP; | |
| END; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: 3 | |
| services: | |
| gitlab-ce: | |
| ports: | |
| - '8443:443' | |
| - '8000:80' | |
| - '2222:22' | |
| volumes: | |
| - '/srv/gitlab/config:/etc/gitlab' | |
| - '/srv/gitlab/logs:/var/log/gitlab' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var app = require("express")(); | |
| var http = require("http").Server(app); | |
| var io = require("socket.io")(http); | |
| var data = require("./data.js"); | |
| var latestData; | |
| data.getData().then(result => { | |
| latestData = result; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import $ from "jquery"; | |
| /** | |
| * Using the github developer API, returns the username | |
| * among the list of usernames passed | |
| * with the highest num of followers. | |
| * | |
| * @param {...string} names Array of Github usernames | |
| */ | |
| function getMostFollowers(...names) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const OFF = 0, WARN = 1, ERROR = 2; | |
| module.exports = exports = { | |
| "env": { | |
| "browser": true | |
| }, | |
| "parserOptions": { | |
| "ecmaVersion": 6, | |
| "sourceType": "module", |
NewerOlder