This file contains 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
FROM ubuntu as ubuntu | |
RUN apt-get update | |
RUN apt-get install -y dpkg-dev wget gnupg2 curl | |
ARG ubuntu_packages="wget htop default-jre-headless apt-transport-https nvidia-container-toolkit cuda-drivers libopengl0 linux-image-extra-virtual omnisci" | |
WORKDIR /opt/packages/deb | |
# Nvidia-Docker |
This file contains 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
Date | Eto | Precip | Sol_Rad | Vap_Pres | Air_Temp | Rel_Hum | Wind_Speed | Wind_Dir | Soil_Temp | |
---|---|---|---|---|---|---|---|---|---|---|
1/1/2014 01:00 | 0 | 0 | 0 | 0.5 | 3.1 | 70 | 1.4 | 50 | 10.6 | |
1/1/2014 02:00 | 0 | 0 | 0 | 0.5 | 3.2 | 68 | 1.2 | 51 | 10.4 | |
1/1/2014 03:00 | 0 | 0 | 0 | 0.5 | 1.6 | 75 | 0.9 | 44 | 10.3 | |
1/1/2014 04:00 | 0 | 0 | 0 | 0.5 | 1 | 77 | 1 | 47 | 10.1 | |
1/1/2014 05:00 | 0 | 0 | 0 | 0.5 | 2.3 | 69 | 1.2 | 73 | 10 | |
1/1/2014 06:00 | 0 | 0 | 0 | 0.5 | 0.7 | 75 | 0.9 | 54 | 9.8 | |
1/1/2014 07:00 | 0 | 0 | 1 | 0.5 | 1 | 74 | 1.1 | 64 | 9.7 | |
1/1/2014 08:00 | 0 | 0 | 20 | 0.5 | 1.3 | 73 | 1 | 48 | 9.6 | |
1/1/2014 09:00 | 0.07 | 0 | 199 | 0.6 | 5 | 69 | 1 | 356 | 9.5 |
This file contains 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
RUN ["apt-get", "update"] | |
RUN ["apt-get", "install", "-y", "zsh"] | |
RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true | |
# docker exec -it my-app-container /bin/zsh |
This file contains 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
#!/bin/bash | |
# | |
# Convert git log into changelog in Debian format | |
# | |
# Tags in format 1.2.3-4 become version entries. Log entries between them | |
# become changelog entries. Merge commits are not excluded, so you probably | |
# have to clean up the result manually. | |
RE_VERSION='^v\?[0-9]\+\([.-][0-9]\+\)*' | |
# Assume the name of the current directory is the package name |
This file contains 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 | |
# -*- coding: utf-8 -*- | |
# | |
# This is how I used it: | |
# $ cat ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history | |
import sys | |
import time | |
This file contains 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
module alu4bits; | |
input [8:0]a,b; | |
input [3:0]sel; | |
output [8:0]z; | |
reg [8:0]z; | |
always @(sel,a,b) | |
begin | |
case(sel) | |
4'b0000: z = a + b; | |
4'b0000: z = a - b; |
This file contains 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
<?php | |
// Constants | |
$KEY_ID = 'YOUR_KEY_ID'; | |
$CONTAINER = 'YOUR_CONTAINER'; | |
$PRIVATE_PEM_LOCATION = 'eckey.pem'; // Store this file outside the public folder! | |
// Config | |
$url = 'https://api.apple-cloudkit.com/database/1/' . $CONTAINER . '/development/public/records/query'; | |
$body = '{"query":{"recordType":"Articles"}}'; |
This file contains 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
#!/bin/bash | |
# | |
# Highligh Nginx config file in Vim | |
# Download syntax highlight | |
mkdir -p ~/.vim/syntax/ | |
wget http://www.vim.org/scripts/download_script.php?src_id=19394 -O ~/.vim/syntax/nginx.vim | |
# Set location of Nginx config file | |
cat > ~/.vim/filetype.vim <<EOF |
This file contains 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
<?php | |
// 地址配置 | |
$iOSAPPStoreLink = '[iOS APP Store Link here]'; | |
$AndroidLink = '[APK Link here]'; | |
function redirect($url) { | |
header('Location: ' . $url); | |
exit(); | |
} |
This file contains 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
.mw-collapsible.wikitable { | |
display:table; | |
} | |
.mw-collapsible.wikitable img { | |
max-width:100%; | |
} | |
.mw-collapsible > tbody > tr:first-child > th { | |
position:relative; | |
padding-left:3em; | |
} |
NewerOlder