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/sh | |
| # install cross-compiler | |
| # sudo apt-get install gcc-arm-linux-gnueabihf | |
| # cd ~/Development | |
| # git clone git://gitorious.org/qt/qt5.git qt5 | |
| apt-get update | |
| apt-get install "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrender-dev \ |
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
| # Copyright (C) 2010 The Android Open Source Project | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, |
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
| <?php | |
| function get_color_palette($name, $count = 8) { | |
| $fmap = array( | |
| 'gif' => 'imagecreatefromgif', | |
| 'png' => 'imagecreatefrompng', | |
| 'jpg' => 'imagecreatefromjpg', | |
| 'jpeg' => 'imagecreatefromjpg' | |
| ); | |
| $path = pathinfo($name); |
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
| -- get properties of the playing track | |
| tell application "iTunes" | |
| set thisTrack to current track | |
| set trackAlbum to the album of thisTrack | |
| set trackYear to the year of thisTrack | |
| set trackName to the name of thisTrack | |
| set trackArtist to the artist of thisTrack | |
| end tell | |
| -- | |
| -- change the status message to your liking here: |
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
| <?php | |
| echo "<pre> | |
| Adoro a tua luz, a tua cor, o teu sinal | |
| Mas o que mais adoro em ti é o Tal Canal | |
| Adoro a tua voz, a tua escrita, a tua oral | |
| Mas o que mais adoro em ti é o Tal Canal | |
| Adoro o teu olhar, teu gaguejar, teu ar fatal | |
| Mas o que mais adoro em ti é o Tal Canal | |
| Adoro a tua grelha, a tua taxa, o teu jornal |
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
| # | |
| # Copyright (C) 2010, 2011 Vinay Sajip. All rights reserved. | |
| # | |
| import logging | |
| import os | |
| class ColorizingStreamHandler(logging.StreamHandler): | |
| # color names to indices | |
| color_map = { | |
| 'black': 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
| from Quartz import * | |
| from AppKit import * | |
| from Foundation import * | |
| import WebKit | |
| import objc | |
| import time | |
| windows = {} | |
| views = {} |
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/python | |
| '''Dump''' | |
| import os, sys, codecs, json, urllib, base64, gzip, datetime, time | |
| import tweepy, session | |
| attrs = { | |
| 'status': ['author', 'contributors', 'coordinates', 'created_at', 'favorited', 'geo', 'id', 'id_str', 'in_reply_to_screen_name', 'in_reply_to_status_id', 'in_reply_to_status_id_str', 'in_reply_to_user_id', 'in_reply_to_user_id_str', 'place', 'retweet_count', 'retweeted', 'source', 'source_url', 'text', 'truncated', 'user'], | |
| 'user': [ 'default_profile', 'default_profile_image', 'description', 'id', 'id_str','location', 'name', 'profile_image_url', 'protected', 'screen_name', 'time_zone', 'url', 'utc_offset', 'verified'], |
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
| @route('/app.manifest') | |
| def manifest(): | |
| """ Generate an HTML 5 offline manifest automatically """ | |
| last = 0 | |
| lines = [] | |
| response.content_type = "ext/cache-manifest" | |
| for (path, dirs, files) in os.walk('app'): | |
| last = max(max(map(lambda x: os.path.getmtime(os.path.join(path, x)), files)),last) | |
| map(lambda x: lines.append(os.path.join(os.path.relpath(path,'app'), x)), filter(lambda x: os.path.splitext(x)[1] in ['.css','.js','.png'], files)) | |
| response.headers['Last-Modified'] = time.strftime("%a, %d %b %Y %H:%M:%S GMT", time.gmtime(last)) |
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
| /* | |
| * This file can be used to apply a style to all web pages you view | |
| * Rules without !important are overruled by author rules if the | |
| * author sets any. Rules with !important overrule author rules. | |
| */ | |
| /* You can find the latest version of this ad blocking css at: | |
| * http://www.floppymoose.com | |
| * hides many ads by preventing display of images that are inside | |
| * links when the link HREF contans certain substrings. |