- By Edmond Lau
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
I hereby claim:
To claim this, I am signing this object:
| var ndarray = require("ndarray") | |
| var ops = require("ndarray-ops") | |
| var lena = require("lena") | |
| var pool = require("typedarray-pool") | |
| var warp = require("ndarray-warp") | |
| var zeros = require("zeros") | |
| var luminance = require("luminance") | |
| var totalWidth = lena.shape[1] | |
| var totalHeight = lena.shape[0] | |
| var canvas = document.createElement('canvas'); |
| import java.util.*; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.Executors; | |
| import java.util.concurrent.ScheduledExecutorService; | |
| import java.util.concurrent.LinkedBlockingQueue; | |
| import static java.util.concurrent.TimeUnit.SECONDS; | |
| public class MessageProcessor { |
| import jdk.jshell.tool.JavaShellToolBuilder; | |
| import javax.swing.*; | |
| import java.awt.*; | |
| import java.awt.event.ActionEvent; | |
| import java.io.*; | |
| import java.nio.charset.StandardCharsets; | |
| import java.util.concurrent.ArrayBlockingQueue; | |
| import java.util.concurrent.BlockingQueue; |
Technical details for https://stackoverflow.com/a/44169445/6730571
On a base system, /usr/bin/java is a symlink that points to /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java, which is an Apple wrapper tool that locates and executes the actual java.
(Do not touch anything in those 2 system directories. It should actually be impossible due to "System Integrity Protection" anyway.)
If you don't have Java installed, attempting to execute java will open a dialog that invites you to install it.
| package fr.zami.demo; | |
| import groovy.util.DelegatingScript; | |
| import org.codehaus.groovy.ast.ASTNode; | |
| import org.codehaus.groovy.ast.expr.ArgumentListExpression; | |
| import org.codehaus.groovy.ast.expr.BinaryExpression; | |
| import org.codehaus.groovy.ast.expr.BooleanExpression; | |
| import org.codehaus.groovy.ast.expr.ConstantExpression; | |
| import org.codehaus.groovy.ast.expr.Expression; | |
| import org.codehaus.groovy.ast.expr.MethodCallExpression; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous"> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
| <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script> | |
| <style> | |
| body { | |
| margin: 40px; |
| /* | |
| * Experiment for Syncthing's beta download page: | |
| * Highlight download links for local platform, and move them to the top. | |
| * | |
| * Coding convention: variables beginning with $ are jquery selections | |
| */ | |
| var css = document.createElement("style"); | |
| css.type = "text/css"; | |
| css.innerHTML = "a.dl-suggestion { font-weight: bold; color: #29b74e; }"; |