Skip to content

Instantly share code, notes, and snippets.

{
"RAW": {
"ETH": {
"USD": {
"TYPE": "5",
"MARKET": "CCCAGG",
"FROMSYMBOL": "ETH",
"TOSYMBOL": "USD",
"FLAGS": "2052",
"PRICE": 1806.63,
from sklearn.model_selection import GridSearchCV
import logging
logger = logging.getLogger('example_logger')
logger.warning('This is a warning')
grid_search = None
def find_best_sgd_svm_estimator(X, y, cv, random_seed=42):
"""Exhaustive search over specified parameter values for svm using sgd.
Returns:
optimized svm estimator.
"""
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <vector>
#include <string>
#include <map>
#include <algorithm>
#include <cmath>
#include <set>
#include <sstream>
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <vector>
#include <string>
#include <map>
#include <algorithm>
#include <cmath>
#include <set>
#include <sstream>
sudo certbot certonly -d ms15.voip.edu.tw --preferred-challenges http-01 --webroot --webroot-path /home/webmaster/www/voip_lab
cp /usr/local/etc/letsencrypt/live/ms15.voip.edu.tw/privkey.pem /usr/local/etc/apache24/ssl.crt/private.key
cp /usr/local/etc/letsencrypt/live/ms15.voip.edu.tw/chain.pem /usr/local/etc/apache24/ssl.crt/ca_bundle.crt
cp /usr/local/etc/letsencrypt/live/ms15.voip.edu.tw/cert.pem /usr/local/etc/apache24/ssl.crt/certificate.crt
  1. flask application(maybe 1~2 hr)
    • basic HTML knoledge
      • useful tags
        • div
        • span
        • form
        • table
      • method
        • get
  • post
const N int = 5000000 // range from 2-1000000
var tbl [N + 5]int // auto set to zero
var primes []int // primes slice
var isCount bool = false
func countPrimes(n int) int {
if (!isCount){
primes = append(primes, 2)
for i := 3; i < N; i+=2 {
if tbl[i] == 0 { // if it is zero, then it is zero
BadMethodCallException: Method App\Http\Controllers\JwtAuthController::show does not exist. in file /var/www/NCNUTalent_backend/vendor/laravel/framework/src/Illuminate/Routing/Controller.php on line 68
#0 /var/www/NCNUTalent_backend/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): Illuminate\Routing\Controller->__call()
#1 /var/www/NCNUTalent_backend/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction()
#2 /var/www/NCNUTalent_backend/vendor/laravel/framework/src/Illuminate/Routing/Route.php(261): Illuminate\Routing\ControllerDispatcher->dispatch()
#3 /var/www/NCNUTalent_backend/vendor/laravel/framework/src/Illuminate/Routing/Route.php(204): Illuminate\Routing\Route->runController()
#4 /var/www/NCNUTalent_backend/vendor/laravel/framework/src/Illuminate/Routing/Router.php(695): Illuminate\Routing\Route->run()
#5 /var/www/NCNUTalent_backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Routing
#include <iostream>
#include <map>
using namespace std;
const int maxN = 1e4 + 5;
int main()
{
int n;
map<int, int> pole;