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
#ifndef TASKTIMER_H | |
#define TASKTIMER_H | |
#include <QTImer> | |
#include <QString> | |
class TaskB : public QTimer | |
{ | |
Q_OBJECT | |
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
/* | |
* valueOfBcdDigits takes an array of unsigned chars that is in BCD format, and | |
* convert the values into and int. | |
* | |
* Inputs -> digits: An unsigned char array | |
* digitSize: Size of digits | |
* Output -> Value of the BCD digits, or -1 if the digits are invalid. | |
* | |
*/ | |
int valueOfBcdDigits(unsigned char *digits, int digitsSize) |
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> | |
#define VALUES_PER_LINE 4 | |
#define VALUE_LINES 2 | |
char dataSource[] = "2.315 3.164 9.121 6.148\n2.134 93.124 12.313 1.264"; | |
int main() | |
{ |
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
Index: YLView.mm | |
=================================================================== | |
--- YLView.mm (revision 318) | |
+++ YLView.mm (working copy) | |
@@ -685,7 +685,16 @@ | |
{ | |
[[YLImagePreviewer alloc] initWithURL: [NSURL URLWithString: url]]; | |
} else | |
- [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: url]]; | |
+ { |
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
pattern = re.compile(r''' | |
\d{4}\-\d{2}\-\d{2} # yyyy-mm-dd | |
\s | |
\d{2}:\d{2}:\d{2} # HH:mm:ss | |
\s | |
(\d{1,3}\.){3}\d{1,3} # IP | |
\(via\sUDP:\s\[ | |
(\d{1,3}\.){3}\d{1,3} # UDP IP | |
\]: | |
\d+ # UDP port? |
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 <QObject> | |
#include <QCoreApplication> | |
#include <QStringList> | |
#include <QDebug> | |
class Test : public QObject | |
{ | |
public: | |
Test(QObject *parent = 0) : QObject(parent) | |
{ |
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
class SomeClass | |
{ | |
private: | |
int someMember; | |
}; | |
class Base | |
{ | |
public: | |
Base() |
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 <iostream> | |
int main() { | |
const char src[] = "\xE6\xAD\xA3\xE9\xAB\x94\xE4\xB8\xAD\xE6\x96\x87"; | |
std::cout << src << std::endl; | |
return 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
// | |
// main.m | |
// test | |
// | |
// Created by uranusjr on 20/11. | |
// Copyright 2011年 __MyCompanyName__. All rights reserved. | |
// | |
#import <Foundation/Foundation.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
f = open('MOON PHASE - ANIME.html', 'r') | |
o = open('output.txt', 'w') | |
line = True | |
while line: | |
line = f.readline().strip() | |
if line == '<tr>': | |
line = f.readline().strip() # Date cell | |
try: | |
date = line.split('>', 2)[2].split('<', 1)[0] |
OlderNewer