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
#!/usr/bin/env python | |
import Tkinter as tk | |
import subprocess | |
import os | |
class Application(tk.Frame): | |
def __init__(self, master=None): | |
tk.Frame.__init__(self, master) | |
self.grid() | |
self.createWidgets() |
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
/* | |
* SoundUtils.cpp | |
* | |
* Created on: Oct 9, 2014 | |
* Author: roy_shilkrot | |
*/ | |
#include <QDebug> | |
#include <QBuffer> |
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
#include <opencv2/opencv.hpp> | |
using namespace cv; | |
/** | |
* Compute RLE. | |
* RLE is encoded in a vector of vectors of (run length, value). | |
* | |
* @param patch_ the 8UC1 image to work on | |
* @param whichWay by which dimension? rows = 0, columns != 0 | |
*/ |
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
/* | |
This is the Tapestry component to communicate with the javascript | |
*/ | |
package com.yourpackage.components; | |
import org.apache.tapestry5.BindingConstants; | |
import org.apache.tapestry5.ComponentResources; | |
import org.apache.tapestry5.Link; | |
import org.apache.tapestry5.MarkupWriter; |
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
diff --git a/codecs/png.cc b/codecs/png.cc | |
index be70a53..65cee67 100644 | |
--- a/codecs/png.cc | |
+++ b/codecs/png.cc | |
@@ -23,6 +23,12 @@ | |
#include "png.hh" #include "Endianess.hh" | |
+#define png_infopp_NULL (png_infopp)NULL | |
+#define int_p_NULL (int*)NULL | |
+#define png_bytepp_NULL (png_bytepp)NULL | |
+#define Z_BEST_COMPRESSION 100 |
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
function onOpen() { | |
// Add a menu with items to colorize the whole document or colorize around the cursor only | |
DocumentApp.getUi().createMenu('LaTeX') | |
.addItem('Colorize LaTeX global', 'searchAndReplace') | |
.addItem('Colorize LaTeX local', 'searchAndReplaceLocal') | |
.addToUi(); | |
} | |
/** | |
* "normalize" the text, remove coloring |
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
/* | |
* Simple HID "driver" for the AIPTEK HyperPen model T-6000U using libHID | |
* http://bfoz.github.io/libhid/ | |
* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2013 Roy Shilkrot | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal |
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 com.yourapp.mixins; | |
import org.apache.tapestry5.BindingConstants; | |
import org.apache.tapestry5.ClientElement; | |
import org.apache.tapestry5.annotations.Import; | |
import org.apache.tapestry5.annotations.InjectContainer; | |
import org.apache.tapestry5.annotations.Parameter; | |
import org.apache.tapestry5.ioc.annotations.Inject; | |
import org.apache.tapestry5.json.JSONObject; | |
import org.apache.tapestry5.services.javascript.JavaScriptSupport; |
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
<!DOCTYPE html> | |
<html> | |
<meta charset="utf-8"> | |
<head> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.23.1/babel.min.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/d3/4.6.0/d3.min.js"></script> | |
<script src="http://unpkg.com/d3-radial-axis@1.5/dist/d3-radial-axis.min.js"></script> | |
<script src="https://npmcdn.com/d3fc-rebind@4.0.1/build/d3fc-rebind.js"></script> | |
<script src="https://npmcdn.com/d3fc-data-join@2.0.0/build/d3fc-data-join.js"></script> | |
<script src="https://npmcdn.com/d3fc-label-layout@4.0.0/build/d3fc-label-layout.js"></script> |
OlderNewer