Connect to mongo
$ mongo
What db am I in?
> db
What dbs do I have?
FROM python:3.7.4-alpine3.10 | |
ADD replace_me/src/requirements.txt /app/requirements.txt | |
RUN set -ex \ | |
&& apk add --no-cache --virtual .build-deps postgresql-dev build-base \ | |
&& python -m venv /env \ | |
&& /env/bin/pip install --upgrade pip \ | |
&& /env/bin/pip install --no-cache-dir -r /app/requirements.txt \ | |
&& runDeps="$(scanelf --needed --nobanner --recursive /env \ |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'connorholyday/vim-snazzy' |
/* Comments | |
/** | |
* Describes what the function does and ends with a period. | |
* | |
* This is space to provide more explanation. | |
* @param { type } paramName Optionally provide more info. | |
* @return { type } Optionally provide more info. | |
*/ |
/* | |
3 Easy steps to get Apollo and Redux to play nicely super fast. | |
Configure the Apollo client | |
*/ | |
import { ApolloClient } from 'apollo-client'; | |
import { createHttpLink } from 'apollo-link-http' | |
import { InMemoryCache } from 'apollo-cache-inmemory'; |
const getTodayDefault = () => { | |
return new Date().toDateString(); | |
} | |
const getTodayCondensed = () => { | |
return new Date().toLocaleDateString(); | |
} | |
const getTodayExpanded = () => { | |
let d = new Date(); |
Connect to mongo
$ mongo
What db am I in?
> db
What dbs do I have?
use std::io::prelude::*; // Traits that let us read and write to the stream | |
use std::net::TcpStream; | |
use std::net::TcpListener; | |
use std::fs; // Bring standard library File into scope | |
fn main() { | |
// bind returns a new TcpListener instances | |
// Connecting to a port to listen to is also called "binding to a port" | |
// bind returns a Result<T, E> | |
// unwrap will stop the program if errors occur |
use std::io; | |
fn main() { | |
println!("How many RSVPS do you have for your Meetup?"); | |
let mut input = String::new(); | |
io::stdin().read_line(&mut input) | |
.expect("Failed to read input."); | |
let trimmed = input.trim(); |
const SHA256 = require('crypto-js/sha256'); | |
const cryptoRandomString = require('crypto-random-string'); | |
class Block { | |
constructor(data) { | |
this.nonce = 0; | |
this.data = data; | |
this.previousHash = ''; | |
this.timeCreated = Date.now(); //+ performance.now(); | |
this.hash = this.calculateHash(); |