Let's say you want to host domains first.com and second.com.
Create folders for their files:
| package com.stackoverflow.q3732109; | |
| import java.io.IOException; | |
| import java.io.OutputStream; | |
| import java.net.InetSocketAddress; | |
| import com.sun.net.httpserver.HttpExchange; | |
| import com.sun.net.httpserver.HttpHandler; | |
| import com.sun.net.httpserver.HttpServer; |
| #!/usr/bin/env python2.7 | |
| from __future__ import print_function | |
| import commands | |
| import os | |
| import stat | |
| from gitlab import Gitlab | |
| def get_clone_commands(token, repo_root): | |
| con = Gitlab("http://gitlab.your.domain", token) |
| import net | |
| import rawsockets | |
| import strutils | |
| const SERVER_PORT = Port(1987) | |
| const SERVER_ADDR = "localhost" | |
| var canQuit = false | |
| proc main() = |
| # 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 |
| package main | |
| import ( | |
| "fmt" | |
| "github.com/jinzhu/gorm" | |
| _ "github.com/lib/pq" | |
| ) | |
| func main() { |
| package main | |
| import ( | |
| "math/rand" | |
| "testing" | |
| "time" | |
| ) | |
| const ( | |
| numItems = 100 // change this to see how number of items affects speed |
| from numba import cuda | |
| gpus = cuda.gpus.lst | |
| for gpu in gpus: | |
| with gpu: | |
| meminfo = cuda.current_context().get_memory_info() | |
| print("%s, free: %s bytes, total, %s bytes" % (gpu, meminfo[0], meminfo[1])) |
| { | |
| // http://eslint.org/docs/rules/ | |
| "ecmaFeatures": { | |
| "binaryLiterals": false, // enable binary literals | |
| "blockBindings": false, // enable let and const (aka block bindings) | |
| "defaultParams": false, // enable default function parameters | |
| "forOf": false, // enable for-of loops | |
| "generators": false, // enable generators | |
| "objectLiteralComputedProperties": false, // enable computed object literal property names |
| type TestCallBack struct { | |
| } | |
| func (c *TestCallBack) Exec(o *Observable) { | |
| log.Println(o.Name) | |
| } | |
| type Callback interface { | |
| Exec(h *Observable) |