###Icons
| Name | Size |
|---|---|
| iphone_2x | 120x120 |
| iphone_3x | 180x180 |
| ipad | 76x76 |
| ipad_2x | 152x152 |
| android_ldpi | 36x36 |
| android_mdpi | 48x48 |
| // Traverses an arbitrary struct and translates all stings it encounters | |
| // | |
| // I haven't seen an example for reflection traversing an arbitrary struct, so | |
| // I want to share this with you. If you encounter any bugs or want to see | |
| // another example please comment. | |
| // | |
| // The MIT License (MIT) | |
| // | |
| // Copyright (c) 2014 Heye Vöcking | |
| // |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "net" | |
| "net/mail" | |
| "net/smtp" | |
| "crypto/tls" | |
| ) |
| package main | |
| import ( | |
| "bytes" | |
| "code.google.com/p/go.crypto/openpgp" | |
| "encoding/base64" | |
| "io/ioutil" | |
| "log" | |
| "os" | |
| ) |
###Icons
| Name | Size |
|---|---|
| iphone_2x | 120x120 |
| iphone_3x | 180x180 |
| ipad | 76x76 |
| ipad_2x | 152x152 |
| android_ldpi | 36x36 |
| android_mdpi | 48x48 |
Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets
“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”
You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?
| #!/bin/bash | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "This script must be run as root" 1>&2 | |
| exit 1 | |
| fi | |
| apt-get update | |
| apt-get install -y git-core autoconf bison libxml2-dev libbz2-dev libmcrypt-dev libcurl4-openssl-dev libltdl-dev libpng-dev libpspell-dev libreadline-dev make | |
| mkdir -p /etc/php7/conf.d | |
| mkdir -p /etc/php7/cli/conf.d | |
| mkdir /usr/local/php7 |
| import math | |
| import numpy | |
| import numpy.random as nrand | |
| """ | |
| Note - for some of the metrics the absolute value is returns. This is because if the risk (loss) is higher we want to | |
| discount the expected excess return from the portfolio by a higher amount. Therefore risk should be positive. | |
| """ |
Because there is an issue with OAuth2 login and localhost development, you currently have to deploy your meteor site to be able to test the Facebook login. A nice little workaround for this is to make the local instance of meteor accessible externally.
There is a great online guide for setting up port forwarding with your router and you can check your public external IP here.
For example, If you have an Apple router, simply open up Airport Utility on your Mac and click edit on your router, then go to the Network tab. Under Port Settings click the + icon and select Personal Web Sharing, setting all of the public and private ports to 3000. Make sure the private IP is set to your current computer IP.
| package main | |
| import ( | |
| "net" | |
| "os/exec" | |
| "github.com/k0kubun/pp" | |
| ) | |
| func Hosts(cidr string) ([]string, error) { |
| # Claas Heuer, November 2015 | |
| # | |
| # Setup Powerline on Debian and Centos for BASH, VIM and TMUX | |
| # source: https://fedoramagazine.org/add-power-terminal-powerline/ | |
| # install on debian | |
| sudo apt-get install python-pip | |
| sudo apt-get install powerline |