- Install Docker
- Install Ruby
gem install orats
(see https://github.com/nickjj/orats)- Install Heroku Toolbelt
gem install orats
(see https://github.com/nickjj/orats)
# add to home directory | |
# git config --global core.excludesfile ~/.gitignore_global | |
# ignore vim swap files | |
*.swp |
var Migrations = artifacts.require('./Migrations.sol'); | |
module.exports = function(deployer) { | |
deployer.deploy(Migrations, { gas: 4612388 }); | |
}; | |
script{ async src="https://www.googletagmanager.com/gtag/js?id=YOURIDHERE" } | |
javascript: | |
window.dataLayer = window.dataLayer || []; | |
function gtag(){ dataLayer.push(arguments); } | |
gtag('js', new Date()); | |
gtag('config', 'YOURIDHERE'); |
using System.Configuration; | |
using System.IO; | |
using System.Net.Http; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.Azure.WebJobs; |
# The goal: create a list of maps of subnet mappings so we don't have to statically hard-code them in aws_lb | |
# https://www.terraform.io/docs/providers/aws/r/lb.html#subnet_mapping | |
locals { | |
# These represent dynamic data we fetch from somewhere, such as subnet IDs and EIPs from a VPC module | |
subnet_ids = ["subnet-1", "subnet-2", "subnet-3"] | |
eips = ["eip-1", "eip-2", "eip-3"] | |
} | |
# Here's the hack! The null_resource has a map called triggers that we can set to arbitrary values. | |
# We can also use count to create a list of null_resources. By accessing the triggers map inside of |
// @flow | |
import { ApolloClient } from 'apollo-client'; | |
import { ApolloLink } from 'apollo-link'; | |
import { HttpLink } from 'apollo-link-http'; | |
import { RetryLink } from 'apollo-link-retry'; | |
import { AuthLink } from './link-auth'; | |
import cache from './cache'; |
https://www.howtogeek.com/265900/everything-you-can-do-with-windows-10s-new-bash-shell/
sudo apt update && sudo apt upgrade
sudo apt-get install zsh
import gql from "graphql-tag"; | |
export const trendingRepositoriesGQLQuery = gql` | |
query search($query: String!, $cursor: String) { | |
search(first: 15, query: $query, type: REPOSITORY, after: $cursor) { | |
pageInfo { | |
startCursor | |
endCursor | |
hasNextPage | |
hasPreviousPage |
import React, { Component } from "react"; | |
class Repos extends Component { | |
componentDidMount() { | |
window.addEventListener("scroll", this.handleOnScroll); | |
} | |
componentWillUnmount() { | |
window.removeEventListener("scroll", this.handleOnScroll); | |
} |