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
javascript:(function(){var%20input=document.getElementById("__VIEWSTATE");if(input)alert(input.value.length+"%20bytes");})(); |
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
import QtQuick 2.4 | |
Item { | |
id: root | |
width: 800 | |
height: 600 | |
property int xOverlap: 0 |
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
// Classes/Pcd.qml | |
import QtQuick 2.3 | |
Rectangle { | |
color: "red" | |
implicitWidth: 200 | |
implicitHeight: 200 | |
function startPcdCall() { | |
console.log("startPcdCall function called..."); |
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
import QtQuick 2.3 | |
Item { | |
id: root | |
width: 400 | |
height: 400 | |
Flickable { | |
anchors.fill: parent | |
contentWidth: grid.width |
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
import QtQuick 2.3 | |
FocusScope { | |
id: scope | |
property alias text: label.text | |
signal clicked() | |
//FocusScope needs to bind to visual properties of the children |
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
# Customize BASH PS1 prompt to show current GIT repository and branch. | |
# by Mike Stewart - http://mediadoneright.com/content/ultimate-git-ps1-bash-prompt | |
# SETUP CONSTANTS | |
# Bunch-o-predefined colors. Makes reading code easier than escape sequences. | |
# I don't remember where I found this. o_O | |
# Reset | |
Color_Off="\[\033[0m\]" # Text Reset |
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 "downloader.hpp" | |
#include <QNetworkRequest> | |
#include <QNetworkReply> | |
#include <QUrl> | |
#include <QVariant> | |
#include <QDebug> | |
Downloader::Downloader(QObject *parent) : | |
QObject(parent) | |
{ |
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
class A { | |
static T a; | |
static T initStaticA() { | |
T t; | |
//do some stuff on t | |
return t; | |
} | |
}; |
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
#As readlink is not available on all distro or OSX, provide a portable way to get an | |
#absolute path from a relative one. | |
make_absolute() { | |
local ret=false | |
local rel_path=$1 | |
if [[ ! -z $rel_path ]]; then | |
#strip eventual last slash | |
rel_path=${rel_path%/} |
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
#!/usr/bin/env python | |
from distutils.core import setup | |
import py2exe | |
setup( | |
options = {'py2exe': {'bundle_files': 1, 'compressed': True, 'dll_excludes': ['w9xpopen.exe']}}, | |
console=['foobar.py'], | |
zipfile = None | |
) |
NewerOlder