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
""" | |
## Overview | |
This script pulls random user data from randomuser.me and populates a database on my local machine. | |
Dependencies: | |
- python 3+ (I'm running 3.8) | |
- requests | |
- your required database driver (I'm using postgres so psycopg2-binary) | |
Useful Resources: |
As much as I love JavaScript, it’s always the most expensive part of your site.
Come learn about Web Components with friends!
Web Components are native browser APIs that let you develop rich UI components with 0KB
of added bundle size! In this workshop I want to convince you that you might not need a framework.
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
from multiprocessing import pool | |
from timeit import timeit | |
def smap(func, stuff): | |
return list(map(func, stuff)) | |
def cmap(func, stuff): | |
with pool.ThreadPool(processes=4) as p: |
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 React, { Component } from 'react'; | |
import { BrowserRouter as Router, Link, Route } from 'react-router-dom'; | |
const project_groups = { | |
python: [ | |
{ | |
id: 'python-hello', | |
title: 'Hello World', | |
description: 'Hello world in python.' | |
} |
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
module Main exposing (..) | |
import Html exposing (Html, Attribute, beginnerProgram, select, option, table, tr, td, th, text, div) | |
import Html.Attributes exposing (value) | |
import Html.Events exposing (on, targetValue) | |
import Json.Decode as JD | |
onChange : (String -> msg) -> Attribute msg | |
onChange toMsg = |
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
if [[ $UID != 0 ]]; then | |
echo "Please run this script with sudo:" | |
echo "sudo bash $0" | |
exit 1 | |
fi | |
CODE_URL=https://az764295.vo.msecnd.net/stable/19222cdc84ce72202478ba1cec5cb557b71163de/code_1.12.2-1494422229_amd64.deb | |
CHROME_URL=https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
GITKRAKEN_URL=https://release.gitkraken.com/linux/gitkraken-amd64.deb |
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
#! /bin/bash | |
set -e | |
echo "Downloading libicu55" | |
curl http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu55_55.1-7ubuntu0.1_amd64.deb > libicu55_55.1-7ubuntu0.1_amd64.deb | |
echo "Installing libicu55" | |
sudo dpkg -i libicu55_55.1-7ubuntu0.1_amd64.deb |
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
module Scratch exposing (..) | |
import Json.Decode exposing (..) | |
type alias Item a = | |
{ a | |
| field1 : String | |
, field2 : String | |
, field3 : String |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>About – Base Camp Coding Academy</title> | |
</head> | |
<body> | |
<a href="https://basecampcodingacademy.org/"> | |
<img width="300" height="82" src="https://basecampcodingacademy.files.wordpress.com/2015/12/basecamp_weblogo_2.png?w=300&h=82&crop=1" /> |
NewerOlder