This file contains 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
{ | |
"recommendations": [ | |
"rome.rome", | |
] | |
} |
This file contains 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
ALTER TABLE "public"."usage_stats" | |
ALTER COLUMN "resSize" TYPE INT USING CASE WHEN "resSize" ~ '^[-+0-9]+$' THEN "resSize"::integer ELSE NULL END; |
This file contains 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
app = Doorkeeper::Application.create!(:name => 'myapp', :redirect_uri => 'myapp://oauth/callback') |
This file contains 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
# Based on: http://donpottinger.net/blog/2014/11/17/bye-bye-heroku-hello-dokku.html | |
# Add to gemfile: | |
ruby '2.1.2' | |
gem 'pg' | |
gem 'puma' | |
gem 'rails_12factor' | |
gem 'searchkick' | |
gem 'typhoeus' |
This file contains 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
## | |
# First stage: prepare image | |
FROM node:12-alpine AS base | |
ARG NPM_TOKEN | |
ARG WORKDIR=/usr/src/app | |
WORKDIR ${WORKDIR} | |
# Install container build dependencies | |
RUN apk --no-cache add g++ ca-certificates lz4-dev musl-dev openssl-dev \ | |
make python gcc zlib-dev libc-dev bsd-compat-headers py-setuptools git bash |
This file contains 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
image: python:latest | |
stages: | |
- deploy | |
variables: | |
WORKON_HOME: .pipenv/venvs | |
PIP_CACHE_DIR: .pipenv/pipcache | |
cache: |
This file contains 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
{ | |
"Setup basic flexbox styling": { | |
"prefix": "flex", | |
"body": [ | |
"display: flex;", | |
"flex-direction: ${1:column};", | |
"justify-content: ${2:flex-start};", | |
"align-items: ${3:flex-start};", | |
"$0" | |
], |
This file contains 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 { ApolloClient } from "apollo-boost"; | |
import { setContext } from "apollo-link-context"; | |
import { InMemoryCache } from "apollo-cache-inmemory"; | |
export default class APIClient { | |
constructor(context = {}, options = {}) { | |
this.context = context; | |
this.options = { fetchPolicy: "no-cache", ...options }; | |
const authLink = setContext((_, context) => { | |
return { |
This file contains 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
console.log("Hello world!"); |
This file contains 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
Show hidden characters
{ | |
"cmd": ["g++ $file -o $file_base_name -I/usr/local/include ; ./$file_base_name"], | |
"selector": "source.c++", | |
"shell": true | |
} |