Backstory: I decided to crowdsource static site generator recommendations, so the following are actual real world suggested-to-me results. I then took those and sorted them by language/server and, just for a decent relative metric, their Github Watcher count. If you want a heap of other projects (including other languages like Haskell and Python) Nanoc has the mother of all site generator lists. If you recommend another one, by all means add a comment.
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
// based largely on Atmel's AVR136: Low-Jitter Multi-Channel Software PWM Application Note: | |
// http://www.atmel.com/dyn/resources/prod_documents/doc8020.pdf | |
#include <avr/io.h> | |
#include <util/delay.h> | |
#include <avr/interrupt.h> | |
#define CHMAX 3 // maximum number of PWM channels | |
#define PWMDEFAULT 0x00 // default PWM value at start up for all channels |
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
/** | |
* AVR program to provide lighting modes for an RGB LED | |
* Copyright (c) 2011 Akoi Meexx (http://akoimeexx.com/) | |
* | |
* Chip type: Attiny13 | |
* Clock frequency: Default internal clock (9.6MHz / 8 = 1.2MHz) | |
* +--------+ | |
* [ (PB5) |1* 8| (VCC) Power ] | |
* [ Button (PB3) |2 7| (PB2) BLUE ] | |
* [ (PB4) |3 6| (PB1) GREEN ] |
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
package jp.joao.android.preference; | |
import android.app.AlertDialog.Builder; | |
import android.content.Context; | |
import android.content.DialogInterface; | |
import android.preference.ListPreference; | |
import android.util.AttributeSet; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; |
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
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
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
import org.apache.xmlrpc.XmlRpcException; | |
import org.apache.xmlrpc.client.XmlRpcClient; | |
import org.apache.xmlrpc.client.XmlRpcClientConfigImpl; | |
@SuppressWarnings({ "unchecked", "rawtypes" }) | |
@Override | |
/** | |
* Create New Posts in Wordpress using Java | |
* | |
* //http://codex.wordpress.org/XML-RPC_WordPress_API/Posts#wp.newPost |
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
import java.nio.ByteBuffer; | |
import com.badlogic.gdx.Gdx; | |
import com.badlogic.gdx.graphics.GL10; | |
import com.badlogic.gdx.graphics.Pixmap; | |
import com.badlogic.gdx.graphics.Pixmap.Blending; | |
import com.badlogic.gdx.graphics.Pixmap.Format; | |
import com.badlogic.gdx.utils.BufferUtils; | |
import com.badlogic.gdx.utils.GdxRuntimeException; |
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
package mingdx; | |
import com.badlogic.gdx.ApplicationListener; | |
import com.badlogic.gdx.Gdx; | |
import com.badlogic.gdx.graphics.Color; | |
import com.badlogic.gdx.graphics.GL10; | |
import com.badlogic.gdx.graphics.OrthographicCamera; | |
import com.badlogic.gdx.graphics.Texture; | |
import com.badlogic.gdx.graphics.g2d.BitmapFont; | |
import com.badlogic.gdx.graphics.g2d.SpriteBatch; |
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
package mdesl.test; | |
import static org.lwjgl.opengl.GL11.GL_COLOR_BUFFER_BIT; | |
import static org.lwjgl.opengl.GL11.GL_ONE; | |
import static org.lwjgl.opengl.GL11.GL_ONE_MINUS_SRC_ALPHA; | |
import static org.lwjgl.opengl.GL11.GL_RGBA; | |
import static org.lwjgl.opengl.GL11.GL_SRC_ALPHA; | |
import static org.lwjgl.opengl.GL11.GL_TEXTURE_2D; | |
import static org.lwjgl.opengl.GL11.GL_UNSIGNED_BYTE; | |
import static org.lwjgl.opengl.GL11.glBlendFunc; |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
OlderNewer