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
#include "LPC43xx.h" | |
void SCT_Init(void) | |
{ | |
LPC_CCU1->CLK_M4_SCT_CFG = (1 << 0); | |
LPC_SCT->CONFIG |= 1; /* 1 = 不拆分定时器 0 = 双16位定时器 */ | |
LPC_SCT->MATCHREL[0].U = 100000000; /* 匹配计数值 */ |
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
#include <msp430.h> | |
#include <stdint.h> | |
void FlashErase(uint16_t addr) | |
{ | |
FCTL3 = FWKEY; | |
FCTL1 = FWKEY + ERASE; | |
while(FCTL3 & BUSY); | |
*(uint8_t *)addr = 0; | |
FCTL1 = FWKEY; |
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
#include <stdio.h> | |
#include <syslog.h> | |
#include <sys/fcntl.h> | |
#include <sys/ioctl.h> | |
#include <linux/fb.h> | |
#include <sys/mman.h> | |
#include <bcm_host.h> | |
int process() { |
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
import urllib.request | |
import ssl | |
import json | |
import json | |
import base64 | |
table_name = '' | |
token = '' | |
ep_url = 'https://hbase-cloudtable.cn-north-1.myhuaweicloud.com/v1/929213ae947c47de866553f0c025741d' |
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/sh | |
# wget -qO- https://git.io/fjf12 | sh | |
# curl -Lso- https://git.io/fjf12 | sh | |
if [ $(id -u) -ne 0 ]; then | |
printf "Script must be run as root or sudo." | |
exit 1 | |
fi |
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
/* | |
* Tencent is pleased to support the open source community by making IoT Hub available. | |
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. | |
* Licensed under the MIT License (the "License"); you may not use this file except in | |
* compliance with the License. You may obtain a copy of the License at | |
* http://opensource.org/licenses/MIT | |
* Unless required by applicable law or agreed to in writing, software distributed under the License is | |
* distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <net/if.h> | |
#include <sys/ioctl.h> | |
#include <sys/socket.h> | |
#include <netinet/ether.h> | |
#include <netpacket/packet.h> | |
#include <netinet/in.h> | |
#include <time.h> |
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 | |
require 'vendor/autoload.php'; | |
$mongo = new MongoDB\Client("mongodb://taterli:f697bb912da7f4d210382c67@127.0.0.1:27017"); | |
$db = $mongo->wa; //选择数据库 | |
$collection = $db->zhihu; //选择文档集合 | |
$next_qid = null; /* 首次 */ | |
$first_qid = 0; |
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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
using System.Runtime.InteropServices; | |
using System.Diagnostics; |
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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; |