See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| var http = require('http'), | |
| fs = require('fs'), | |
| path = require('path'), | |
| exec = require('child_process').exec; | |
| function pipeDoc(inputPath, finalType, stream) { | |
| var finalPath = path.dirname(inputPath) | |
| + "/" + path.basename(inputPath).split('.')[0] + ".html"; | |
| var convCommand = 'unoconv -f ' + finalType + " " + inputPath; | |
| exec(convCommand,function(err, stdout, stderr) { |
| data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> |
| // A drop in script to add simple and configurable Avro file compilation support | |
| buildscript { | |
| repositories { | |
| mavenCentral() | |
| mavenLocal() | |
| } | |
| dependencies { | |
| classpath([ | |
| "org.apache.avro:avro-tools:1.7.4" |
| import android.support.v7.widget.LinearLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| public abstract class EndlessRecyclerOnScrollListener extends RecyclerView.OnScrollListener { | |
| public static String TAG = EndlessRecyclerOnScrollListener.class.getSimpleName(); | |
| private int previousTotal = 0; // The total number of items in the dataset after the last load | |
| private boolean loading = true; // True if we are still waiting for the last set of data to load. | |
| private int visibleThreshold = 5; // The minimum amount of items to have below your current scroll position before loading more. | |
| int firstVisibleItem, visibleItemCount, totalItemCount; |
| #include <PubSubClient.h> | |
| #include <ESP8266WiFi.h> | |
| const char* ssid = "................."; | |
| const char* password = "................"; | |
| char* topic = "esp8266_arduino_out"; | |
| char* server = "iot.eclipse.org"; | |
| * { | |
| font-size: 12pt; | |
| font-family: monospace; | |
| font-weight: normal; | |
| font-style: normal; | |
| text-decoration: none; | |
| color: black; | |
| cursor: default; | |
| } |
| /** | |
| * Custom Scroll listener for RecyclerView. | |
| * Based on implementation https://gist.github.com/ssinss/e06f12ef66c51252563e | |
| */ | |
| public abstract class EndlessRecyclerOnScrollListener extends RecyclerView.OnScrollListener { | |
| public static String TAG = "EndlessScrollListener"; | |
| private int previousTotal = 0; // The total number of items in the dataset after the last load | |
| private boolean loading = true; // True if we are still waiting for the last set of data to load. | |
| private int visibleThreshold = 5; // The minimum amount of items to have below your current scroll position before loading more. |
| #!/usr/bin/python | |
| # | |
| # this script will push an OTA update to the ESP | |
| # | |
| # use it like: python ota_server.py <ESP_IP_address> <sketch.bin> | |
| # | |
| # on the ESP side you need code like this: https://gist.github.com/igrr/43d5c52328e955bb6b09 to handle the update | |
| # | |
| import socket |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| int addi(int a, int b) { | |
| return a + b; | |
| } | |
| char *adds(char *a, char *b) { | |
| char *res = malloc(strlen(a) + strlen(b) + 1); |