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
% ---------------------------------- | |
% IoT 论文常用引用 | |
% ---------------------------------- | |
% https://azure.microsoft.com/es-es/blog/iot-device-authentication-options/ | |
@Misc{iot_auth, | |
Title = {{IoT Authentication}}, | |
HowPublished = {\url{https://www.nabto.com/iot-device-authentication-comparison-guide/}}, | |
} | |
% https://www.okta.com/identity-101/what-is-token-based-authentication/ |
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
# Download all necessaries files into the `files` folder | |
# This script is taken from https://www.willhaley.com/blog/debian-arm-qemu/ | |
pushd . | |
mkdir -p files && cd files | |
curl -O http://ftp.us.debian.org/debian/dists/stable/main/installer-armhf/current/images/cdrom/initrd.gz | |
curl -O http://ftp.us.debian.org/debian/dists/stable/main/installer-armhf/current/images/cdrom/vmlinuz | |
curl -O -L https://cdimage.debian.org/debian-cd/current/armhf/iso-dvd/debian-12.1.0-armhf-DVD-1.iso |
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
# encode=utf-8 | |
import os | |
import sys | |
import subprocess | |
""" | |
or one line powershell command: | |
(Get-ChildItem -Recurse -Directory).FullName | ForEach-Object {fsutil.exe file setCaseSensitiveInfo $_ enable} | |
https://stackoverflow.com/questions/51591091/apply-setcasesensitiveinfo-recursively-to-all-folders-and-subfolders |
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
# coding: utf-8 | |
__author__ = 'fripSide' | |
import os | |
import requests as r | |
import lxml.html as html | |
import re | |
import pandas as pd | |
""" | |
TODO: | |
1. 抓取股票名称 |
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
import openpyxl | |
from openpyxl import worksheet | |
from openpyxl.utils import range_boundaries | |
def patch_worksheet(): | |
"""This monkeypatches Worksheet.merge_cells to remove cell deletion bug | |
https://bitbucket.org/openpyxl/openpyxl/issues/365/styling-merged-cells-isnt-working | |
Thank you to Sergey Pikhovkin for the fix | |
""" |
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
//InputControl.cs by Azuline Studios© All Rights Reserved | |
//Manages button and axis input to be read by the other scripts. | |
using UnityEngine; | |
using System.Collections; | |
public class InputControl : MonoBehaviour { | |
private FPSPlayer FPSPlayerComponent; | |
//button states that are accessed by the other scripts |
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
sudo apt-get install -y libgmp-dev libmpfr-dev libmpc-dev zlib1g-dev | |
wget ftp://ftp.gnu.org/gnu/gcc/gcc-5.3.0/gcc-5.3.0.tar.bz2 | |
tar vf gcc-5.3.0.tar.bz2 | |
mkdir outdir | |
cd outdir | |
../gcc-5.3.0/configure --disable-checking --program-suffix=-5.3 --enable-languages=c,c++,go,objc --disable-multilib --with-system-zlib prefix=/usr/local/gcc-5.3 | |
make && make install | |
# choose gcc-5.3 | |
update-alternatives --install /usr/bin/gcc gcc /usr/local/gcc-5.3/bin/gcc-5.3 30 |
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
#include <memory> | |
#include <cassert> | |
/* | |
* @author snk | |
* | |
* 9 points: 787728 | |
* 16 points: timeout | |
*/ |
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
var events = require('events'); | |
var util = require('util'); | |
//http://rainsilence.iteye.com/blog/1534720 | |
var sleep = function(time) { | |
var startTime = new Date().getTime(); | |
while(new Date().getTime() < startTime + time); | |
}; | |
//non-blcoking |