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
Line Loc Source statement Object code | |
5 1000 ADDITION START 1000 | |
. I can't find RTL on textbook, is it STL? | |
10 1000 FIRST STL RETADR 172020 | |
15 1003 BASE ALPHA | |
20 1003 LDB #ALPHA 690000 | |
25 1006 LDS #3 6D0000 | |
30 1009 LDT SIZE 77201A | |
35 100C LDX #0 050000 | |
40 100F ADDLP LDA ALPHA,X 03A012 |
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 <stdio.h> | |
#include <stdlib.h> | |
int increase(char* a, int n); | |
int checkRepeat(char* a, int n) | |
{ | |
int i, j; | |
for (i = 0; i < n-1; ++i) | |
// 檢查數字中是否有重複出現的數字 |
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 <iostream> | |
#include <string> | |
using namespace std; | |
void MasterMind(string master, string mind, int* b, int* w) | |
{ | |
bool* checked1 = new bool[master.length()]; | |
bool* checked2 = new bool[master.length()]; | |
memset(checked1, false, master.length()); | |
memset(checked2, false, master.length()); |
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 <stdio.h> | |
#include <stdlib.h> | |
#define KEYMAXLEN 64 | |
void printKey(int c) | |
{ | |
char bits[4]; | |
char *buffer; | |
int i = 0; | |
while (c != -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
// ==UserScript== | |
// @name auto99 | |
// @namespace http://knowlet.me/ | |
// @version 0.1 | |
// @description auto pagging for 99comic | |
// @author knowlet | |
// @match http://www.99comic.com/comics/* | |
// @grant none | |
// ==/UserScript== | |
var a = document.querySelector(".cHeadNav") |
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
#!/bin/bash | |
USER=knowlet | |
git remote add -f $1 https://github.com/$USER/$1.git | |
git merge -s ours --no-commit $1/master | |
git read-tree --prefix=$1/ -u $1/master | |
git commit -m "Subtree merged in $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
$(".sl-block-content").click(function (e){ | |
if (this.innerHTML=="") { | |
var URL = prompt("Please input the image src") | |
URL && $(this).append('<img src="' + URL + '">') | |
} | |
}) |
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 table = document.querySelector("table"); | |
var source = document.querySelector("td[align] img").src.slice(0, -7); | |
var pages = Number(location.pathname.slice(-11, -8)); | |
for (var i = 2; i <= pages; ++i) { | |
var row = table.insertRow(i+3); | |
row.align="center"; | |
var cell = row.insertCell(0); | |
var page = ("000"+i).substr(-3); | |
cell.innerHTML = '<img src="' + source + page + '.jpg" border="0" onload="if(this.width>screen.width) {this.resized=true; this.width=screen.width*0.96;}">'; | |
} |
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
/* 河道上的噗 */ | |
.plurk_cnt { | |
/* 設定噗跟預設一樣大小的圓角 */ | |
border-radius: 0 0 10px 10px; | |
/* 調整成跟展開一樣寬 */ | |
min-width: 380px; | |
} | |
.response_time.plurk_cnt { | |
/* 110 + 10 + 2 */ | |
min-width: 122px; |
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
server { | |
listen 80; | |
root /var/www/html/$subdomain; | |
index index.php index.html index.htm; | |
server_name ~^(?<subdomain>.+).knowlet.me$; | |
location / { | |
try_files $uri $uri/ =404; |