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
//scrollbar style (http://img0.www.suckmypic.net/img/N/k/bmSkF3Jp/chrome_scrollbar.png) | |
horizontalScrollBar()->setStyleSheet("QScrollBar:horizontal{border:1px solid grey;background:#f1f1f1;height:10px}QScrollBar::handle:horizontal{background:#aaa;min-width:20px;margin:1px}QScrollBar::add-line:horizontal,QScrollBar::sub-line:horizontal{width:0;height:0}"); | |
verticalScrollBar()->setStyleSheet("QScrollBar:vertical{border:1px solid grey;background:#f1f1f1;width:10px}QScrollBar::handle:vertical{background:#aaa;min-height:20px;margin:1px}QScrollBar::add-line:vertical,QScrollBar::sub-line:vertical{width:0;height: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
The MIT License (MIT) | |
Copyright (c) 2014 | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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.Windows.Forms; | |
using System.Drawing; | |
namespace ClipboardTest | |
{ | |
public class Form1 : Form | |
{ | |
public Form1() | |
{ |
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
{ "attachments" : [ { "filename" : "zzz.png", | |
"issue" : 202, | |
"path" : "attachments/b6cc53ffeaab42adb9071515d82704f9", | |
"user" : "Vincent168" | |
}, | |
{ "filename" : "nfsw_launcher.exe", | |
"issue" : 212, | |
"path" : "attachments/6ef6431123184d2ba01e712715bdbe10", | |
"user" : null | |
}, |
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/bash | |
git clone ssh://fromhost.com/home/fromuser/$1.git | |
cd $1 | |
git remote remove origin | |
git remote add origin https://tohost.com:443/touser/$1.git | |
git push origin --all | |
cd .. | |
rm -rf $1 |
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
""" | |
A script that tries to determine the call stack | |
Run the application with the debugger, suspend the debugger, select a thread and finally run the script. | |
Copyright (c) 1990-2009 Hex-Rays | |
ALL RIGHTS RESERVED. | |
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 "DLL.h" | |
#include <stdlib.h> | |
#include <cstring> | |
DLL_EXPORT void* DataAlloc(size_t size) | |
{ | |
return malloc(size); | |
} | |
DLL_EXPORT void DataFree(void* ptr) |
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 "Debugger.Thread.Registers.h" | |
#ifdef _WIN64 | |
#define contextGax _context.Rax | |
#define contextGbx _context.Rbx | |
#define contextGcx _context.Rcx | |
#define contextGdx _context.Rdx | |
#define contextGdi _context.Rdi | |
#define contextGsi _context.Rsi | |
#define contextGbp _context.Rbp |
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
/****************************************************************************** | |
* File: GraphProcessor.cpp | |
* Author: Carsten Gutwenger | |
* | |
* Implements some helper functions for drawing graphs. | |
* | |
****************************************************************************** | |
* | |
* Copyright (c) 2010-2011 Carsten Gutwenger | |
* All rights reserved. |
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 <stdarg.h> | |
#include <vector> | |
enum Message | |
{ | |
MsgAdd, //int(int, int) | |
MsgNeg, //int(int) | |
MsgRand, //int() | |
}; |
OlderNewer