package main
import (
"fmt"
"net"
"reflect"
"runtime"
"syscall"
)
This file contains hidden or 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
| /opt/bin/nvidia-smi | |
| wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb | |
| dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb 2> /dev/null | |
| apt-key add /var/cuda-repo-8-0-local-ga2/7fa2af80.pub | |
| apt-get update | |
| apt-get install -qq cuda gcc-5 g++-5 -y | |
| ln -s /usr/bin/gcc-5 /usr/local/cuda/bin/gcc | |
| ln -s /usr/bin/g++-5 /usr/local/cuda/bin/g++ | |
| /usr/local/cuda/bin/nvcc --version |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| /* Create a WiFi access point and provide a web server on it. */ | |
| #include <ESP8266WiFi.h> | |
| #include "./DNSServer.h" // Patched lib | |
| #include <ESP8266WebServer.h> | |
| const byte DNS_PORT = 53; // Capture DNS requests on port 53 | |
| IPAddress apIP(10, 10, 10, 1); // Private network for server | |
| DNSServer dnsServer; // Create the DNS object | |
| ESP8266WebServer webServer(80); // HTTP server |
- redom (1.6k) - Tiny turboboosted JavaScript library for creating user interfaces
- frzr (1.6k) - Turboboosted 2 KB view library for browser & node.js
- killroy (1.9k) - A tiny ui library inspired by React
- real-dom (0.7k) - A ~1K non-virtual DOM non-framework framework for simple apps
- domchanger (1.8k) - Dombuilder that applies diffs only to the real dom
- vomit (3.2k) - A high order function using virtual dom to build user interfaces
- bel (3.5k) - A simple library for composable DOM elements using tagged template strings
- yo-yo (5.4k) - A tiny library for building modular UI components using DOM diffing and ES6 tagged template literals (build on bel)
- [choo](https://github.com/yos
This file contains hidden or 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
| Shader "Unlit/Intersection Glow" | |
| { | |
| Properties | |
| { | |
| _Color ("Color", Color) = (1,0,0,1) | |
| } | |
| SubShader | |
| { | |
| Tags { "RenderType"="Transparent" "Queue"="Transparent" } | |
| LOD 100 |
This file contains hidden or 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 python | |
| """ | |
| Script to open TCP connection and send 1 HTTP GET request containing | |
| a specific string, and header | |
| Usage: | |
| ./http.py <IP_of_target> | |
| There is only one mandatory argument, which is the target IP address. |
This file contains hidden or 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
| package main | |
| import "encoding/json" | |
| // Unescape UTF-8 string | |
| // e.g. convert "\u0e27\u0e23\u0e0d\u0e32" to "วรญา" | |
| func UnescapeString(str string) (unescapedString string) { | |
| json.Unmarshal([]byte(`"`+str+`"`), &unescapedString) | |
| return | |
| } |