Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
import os, time, sys, fnmatch | |
path_to_watch = "D:/Projects/consumer-purchase-webapp/WebContent/js" | |
def findCoffeeFiles(): | |
matches = [] | |
for root, dirnames, filenames in os.walk(path_to_watch): | |
for filename in fnmatch.filter(filenames, '*.coffee'): | |
matches.append(os.path.join(root, filename)) | |
return matches |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
im=Image.open("1.jpg") | |
#im=im.rotate(1) | |
im.save("e.jpg") | |
im2=im.convert("L") | |
im2.save("b.jpg") | |
threshold = 100 | |
im = im2.point(lambda p: p > threshold and 255) | |
im.save("d.jpg") | |
img="d.jpg" | |
result = tesseract.ProcessPagesWrapper(img,api) |
As I want to kickstart javascript development very fast, I have found those roadmaps. They are freshly updated with latest stuff. I will complete my learning with SPA course from [http://singlepageappbook.com/][spa-url]:
<div style="text-align: center;"> | |
<iframe height="800" src="https://docs.google.com/document/d/1Z_i6cPWHLEv1AomflaVn4aG7_mYBRyJ7EhpcxiV17x4/pub?embedded=true" width="650"></iframe> | |
</div> |
public static String toISO8601UTC(Date date) { | |
TimeZone tz = TimeZone.getTimeZone("UTC"); | |
DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'"); | |
df.setTimeZone(tz); | |
return df.format(date); | |
} | |
public static Date fromISO8601UTC(String dateStr) { | |
TimeZone tz = TimeZone.getTimeZone("UTC"); | |
DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'"); |
// ==UserScript== | |
// @name MathJax for Gists | |
// @include *://gist.github.com/* | |
// @version 0.1 | |
// @description Adds MathJax support to Gists. | |
// ==/UserScript== | |
if ((window.unsafeWindow == null ? window : unsafeWindow).MathJax == null) { | |
var script = document.createElement("script"); | |
script.type = "text/javascript"; |
var stopwords = ["a", "a's", "able", "about", "above", "according", "accordingly", "across", "actually", "after", "afterwards", "again", "against", "ain't", "all", "allow", "allows", "almost", "alone", "along", "already", "also", "although", "always", "am", "among", "amongst", "an", "and", "another", "any", "anybody", "anyhow", "anyone", "anything", "anyway", "anyways", "anywhere", "apart", "appear", "appreciate", "appropriate", "are", "aren't", "around", "as", "aside", "ask", "asking", "associated", "at", "available", "away", "awfully", "be", "became", "because", "become", "becomes", "becoming", "been", "before", "beforehand", "behind", "being", "believe", "below", "beside", "besides", "best", "better", "between", "beyond", "both", "brief", "but", "by", "c'mon", "c's", "came", "can", "can't", "cannot", "cant", "cause", "causes", "certain", "certainly", "changes", "clearly", "co", "com", "come", "comes", "concerning", "consequently", "consider", "considering", "contain", "containing", "contains", "correspondi |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
import java.io.IOException; | |
import java.net.URLClassLoader; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.nio.file.Path; | |
/** | |
* Example demonstrating a ClassLoader leak. | |
* | |
* <p>To see it in action, copy this file to a temp directory somewhere, |