-
var는function-scoped이고,let,const는block-scoped입니다. -
function-scoped와block-scoped가 무슨말이냐?
This is a guide that I wrote to improve the default security of my website https://fortran.io , which has a certificate from LetsEncrypt. I'm choosing to improve HTTPS security and transparency without consideration for legacy browser support.
WARNING: if you mess up settings, lose your certificates, or decide to no longer maintain HTTPS certs, these steps can and will make your domain inaccessible.
I would recommend these steps only if you have a specific need for information security, privacy, and trust with your users, and/or maintain a separate secure.example.com domain which won't mess up your main site. If you've been thinking about hosting a site on Tor, then this might be a good option, too.
The best resources that I've found for explaining these steps are https://https.cio.gov , https://certificate-transparency.org , and https://twitter.com/konklone
This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
- Installing Homebrew is effortless, open Terminal and enter :
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" - Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :
| package codejam | |
| import java.io.{PrintStream, File} | |
| import scala.annotation.tailrec | |
| import scala.io.Source | |
| object CountingSheep { |
| #!/usr/bin/env python2 | |
| # -*- coding: UTF-8 -*- | |
| # Note: A newer version of this script is located at https://github.com/trustin/smi2ass | |
| # | |
| # Copyright (C) 2018 Trustin Heuiseung Lee and other contributors | |
| # | |
| # This program is free software; you can redistribute it and/or | |
| # modify it under the terms of the GNU General Public License | |
| # as published by the Free Software Foundation; either version 2 | |
| # of the License, or (at your option) any later version. |
| #!/usr/bin/env python2 | |
| # -*- coding: utf-8 -*- | |
| from __future__ import division | |
| import numpy as np | |
| from math import cos, sin, pi, sqrt, atan2 | |
| d2r = pi/180 | |
| class Geometry(object): | |
| def circle_intersection(self, circle1, circle2): |
| #!/bin/bash | |
| # Centos 7/8 John the Ripper Installation | |
| #release=(j 1.8.0) | |
| release=(k 1.9.0) | |
| # Check Centos version | |
| if [ -f /etc/redhat-release ] ; then | |
| source /etc/os-release | |
| if [ $VERSION_ID == "8" ] ; then | |
| packager=dnf | |
| elif [ $VERSION_ID == "7" ] ; then |
| # Implementation of a simple MLP network with one hidden layer. Tested on the iris data set. | |
| # Requires: numpy, sklearn>=0.18.1, tensorflow>=1.0 | |
| # NOTE: In order to make the code simple, we rewrite x * W_1 + b_1 = x' * W_1' | |
| # where x' = [x | 1] and W_1' is the matrix W_1 appended with a new row with elements b_1's. | |
| # Similarly, for h * W_2 + b_2 | |
| import tensorflow as tf | |
| import numpy as np | |
| from sklearn import datasets | |
| from sklearn.model_selection import train_test_split |
| import android.os.Build; | |
| /** | |
| * Utility methods related to physical devies and emulators. | |
| */ | |
| public class DeviceUtil { | |
| public static boolean isEmulator() { | |
| return Build.FINGERPRINT.startsWith("generic") | |
| || Build.FINGERPRINT.startsWith("unknown") |