- Use a class 10 SD card for best speed. The USB bus can't come much higher than 30MB/s so you don't have to buy any extremely fast ones though. Not all cards are compatible, check the compatibility list: http://elinux.org/RPi_SD_cards
- Use the HardFloat version of Raspbian instead of the SoftFloat. HF has much faster floating point operations - however SF is required for running Java. So it's either Java or performance, like normal.
- The official Raspbian image gives low network speeds: http://elinux.org/RPi_Performance#NIC
- A graphics driver by Simon / teh_orph is using hardware acceleration for some instructions: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=63&t=28294 installation instructions: http://elinux.org/RPi_Xorg_rpi_Driver
- The firmware can be upgraded which gives, among other things, better GPU performance.
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
| /* chacha20 - 256 bits */ | |
| // Written in 2014 by Devi Mandiri. Public domain. | |
| // | |
| // Implementation derived from chacha-ref.c version 20080118 | |
| // See for details: http://cr.yp.to/chacha/chacha-20080128.pdf | |
| var Chacha20KeySize = 32; | |
| var Chacha20NonceSize = 8; |
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 "pebble_os.h" | |
| #include "pebble_app.h" | |
| #include "pebble_fonts.h" | |
| PBL_APP_INFO(MY_UUID, "Holiday", "Tom Medley", 1, 1 /* App version */, RESOURCE_ID_IMAGE_MENU_ICON, APP_INFO_WATCH_FACE); | |
| Window window; | |
| TextLayer text_time_layer; |
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
| #lsauer.com, 2013 | |
| #Note: -)for convenience the function uses the re-module, but can be rewritten to fit into a lambda expression | |
| # -)choose any other, more-expressive return type such as NumPy's `nan` over None if you like | |
| #demonstrative-version: | |
| def parseInt(sin): | |
| import re | |
| return int(''.join([c for c in re.split(r'[,.]',str(sin))[0] if c.isdigit()])) if re.match(r'\d+', str(sin), re.M) and not callable(sin) else None | |
| #via a simple regex: |
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
| /* | |
| * I add this to html files generated with pandoc. | |
| */ | |
| html { | |
| font-size: 100%; | |
| overflow-y: scroll; | |
| -webkit-text-size-adjust: 100%; | |
| -ms-text-size-adjust: 100%; | |
| } |
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
| .scanlines { | |
| background-image: linear-gradient(90deg, | |
| #223 25%, #450 25%, #410 50%, | |
| #230 50%, #210 75%, #200 75%, #190); | |
| background-size:6px 6px; | |
| } |
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
| /* | |
| * RIFFWAVE.js v0.03 - Audio encoder for HTML5 <audio> elements. | |
| * Copyleft 2011 by Pedro Ladaria <pedro.ladaria at Gmail dot com> | |
| * | |
| * Public Domain | |
| * | |
| * Changelog: | |
| * | |
| * 0.01 - First release | |
| * 0.02 - New faster base64 encoding |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
NewerOlder