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 <windows.h> | |
#include <math.h> | |
const int COUNT = 200, INTERVAL = 300; | |
const double SPLIT = 0.01; | |
int busySpan[COUNT], idleSpan[COUNT]; | |
void Draw() | |
{ | |
DWORD startTime = 0; | |
int j = 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
/* =============================== */ | |
/* *** [ CST12 Yearbook 2013 ] *** */ | |
/* =============================== */ | |
eval(function( p,a,c,k,e ,d ){e=function(c){return// | |
c.toString (30 +6)} /**/ ;if (!''.// *#| | |
replace ((/^/ ) , String)) { | |
while( c--){d[c. toString | |
(a)]=k [c]||c.toString (a)}k=[ | |
function (e){return('') +d[e]}]; |
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 | |
import sys | |
from optparse import OptionParser | |
import random | |
import math | |
def hfunc(index): | |
if index == -1: | |
return 'MISS' |
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 <errno.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <locale.h> | |
#include <glib.h> | |
#include <glib/gstdio.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
#include <stdio.h> | |
#include <unistd.h> | |
#include <net/if.h> | |
#include <arpa/inet.h> | |
#include <linux/if_ether.h> | |
#include <linux/if_tun.h> | |
#include <assert.h> | |
#include <memory.h> | |
#include <fcntl.h> | |
#include <poll.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
-- ================================================= | |
-- | |
-- ================================================= | |
proto = Proto("tible","TI BLE CC2540Dongle") | |
-- ================================================= | |
-- Read reserve other protocol fileds | |
-- ================================================= | |
usb_transtype_f = Field.new("usb.transfer_type") -- BULK=0x03 | |
usb_datalen_f = Field.new("usb.data_len") |
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: utf8 -*- | |
import os | |
import json | |
from aliyunsdkcore.client import AcsClient | |
from aliyunsdkcore.acs_exception.exceptions import ClientException | |
from aliyunsdkcore.acs_exception.exceptions import ServerException | |
from aliyunsdkalidns.request.v20150109 import DescribeDomainRecordsRequest,AddDomainRecordRequest,DescribeSubDomainRecordsRequest,UpdateDomainRecordRequest,DeleteDomainRecordRequest | |
# 创建 AcsClient 实例 | |
client = AcsClient( |
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
setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p1 rw rootwait;ext4load mmc 0:1 0x41000000 boot/zImage;ext4load mmc 0:1 0x41800000 boot/sun8i-v3s-saltedfishpi.dtb;bootz 0x41000000 - 0x41800000 |
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
initcall: 8000da50 | |
initcall: 80033c4c | |
initcall: 8001b610 | |
initcall: 8000de70 | |
initcall: 8000daa8 | |
initcall: 80000808 | |
initcall: 8000deb4 | |
initcall: 8000de58 | |
malloc_simple: size=18, ptr=18, limit=600: 807fe950 | |
malloc_simple: size=54, ptr=6c, limit=600: 807fe968 |
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
uint64_t mask = 0; | |
for(int i=0; i<2; i++){ | |
volatile uint64_t *ptr = (volatile uint64_t*)0x80100000; | |
uint64_t rnd = 12345; | |
for(; (uint64_t)ptr < 0x80800000; ptr+=1) | |
{ | |
*ptr = rnd^mask; // Write MEM | |
// if((uint64_t)ptr == 0x802a0d90){ | |
// printHex(rnd^mask); |