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
#!/usr/bin/env bash | |
# | |
# Bootstrap script for setting up a new OSX machine | |
# | |
# This should be idempotent so it can be run multiple times. | |
# | |
# Some apps don't have a cask and so still need to be installed by hand. These | |
# include: | |
# | |
# - Twitter (app store) |
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
#!/usr/bin/env bash | |
# | |
# Bootstrap script for setting up a new OSX machine | |
# | |
# This should be idempotent so it can be run multiple times. | |
# | |
# Notes: | |
# | |
# - If installing full Xcode, it's better to install that first from the app | |
# store before running the bootstrap script. Otherwise, Homebrew can't access |
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 sys | |
from urllib.parse import urlparse | |
import urllib.request | |
import re | |
import json | |
import datetime | |
class ContentParser(object): | |
_url = None |
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 from 'react' | |
import { Switch, Route } from 'react-router-dom' | |
import HelloWorld from './HelloWorld' | |
const Route = () => ( | |
<main> | |
<Switch> | |
<Route exact path='/hello-world/:id' component={HelloWorld}/> | |
<Route path='/not-found' component={NotFound}/> | |
</Switch> | |
</main> |
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 boto3 | |
from django.conf import settings | |
session = boto3.session.Session() | |
s3 = session.resource( | |
's3', | |
aws_access_key_id=settings.AWS_ACCESS_KEY_ID, | |
aws_secret_access_key=settings.AWS_SECRET_ACCESS_KEY, | |
endpoint_url=settings.AWS_S3_ENDPOINT_URL |
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
sudo pacman -S git | |
sudo pacman -S pulseaudio | |
sudo pacman -S libldac | |
sudo pacman -S pulseaudio-modules | |
sudo pacman -S bluez | |
sudo pacman -S bluez-tools | |
sudo pacman -S bluez-utils | |
sudo pacman -S pulseaudio-bluetooth | |
sudo pacman -S gnome-bluetooth | |
sudo pacman -S bluez-utils |
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
<script> | |
const posts = {{ $p }}; | |
const query = new URLSearchParams(window.location.search); | |
const searchString = query.get('q'); | |
document.querySelector('.search-content').innerHTML = searchString; | |
const $target = document.querySelector('.search-items'); | |
let matchPosts = []; | |
posts.map(function(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 datetime | |
def convert_to_epoch(date_string, format="%Y-%m-%dT%H:%M:%SZ"): | |
dt = datetime.datetime.strptime(date_string, format) | |
return int(str(dt.timestamp())[:-2]) |
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
Pre Interview: | |
1. Ask to recruiter about their salary range. | |
2. If it does not match, then let them know about your range. | |
Durning Interview: | |
1. Do not share salary expectation other than HR. | |
2. Dodge the the question. | |
Before Offer: |
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
Step 0. | |
xcode-select --install | |
Step 1. | |
brew install openssl | |
Step 2. |
OlderNewer