Skip to content

Instantly share code, notes, and snippets.

View eed3si9n's full-sized avatar

eugene yokota eed3si9n

View GitHub Profile
package footprint
abstract class DataModel
case class CategoryTags(categoryTag: String*) extends DataModel {
}
object CategoryTags {
def fromXML(node: scala.xml.Node): CategoryTags =
CategoryTags((node \ "categoryTag").toList.map(_.text): _*)
#include <iostream>
using namespace std;
class Foo {
};
class Bar {
private:
@eed3si9n
eed3si9n / Foo.java
Created October 18, 2010 18:50
Flip that y axis
import java.awt.*;
import javax.swing.*;
import java.awt.geom.*;
public class Foo extends JFrame {
private static final long serialVersionUID = 1L;
private JPanel jContentPane = null;
private JPanel jPanel = null;
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified">
<xs:element name="FilterDevicePreset" type="FilterDevicePreset"/>
<xs:complexType name="FilterDevicePreset">
<xs:all>
<xs:element name="DeviceSlot" minOccurs="0" type="AudioPluginDevice"/>
<xs:element name="DeviceSlot" minOccurs="0" type="BusCompressorDevice"/>
<xs:element name="DeviceSlot" minOccurs="0" type="CabinetSimulatorDevice"/>
<xs:element name="DeviceSlot" minOccurs="0" type="ChorusDevice"/>
<xs:element name="DeviceSlot" minOccurs="0" type="CompressorDevice"/>
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified">
<xs:element name="RenoiseDeviceChain" type="RenoiseDeviceChain"/>
<xs:complexType name="RenoiseDeviceChain">
<xs:all>
<xs:element name="Devices" minOccurs="0">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="FormulaMetaDevice" minOccurs="0" maxOccurs="unbounded" type="FormulaMetaDevice"/>
<xs:element name="MidiCCDevice" minOccurs="0" maxOccurs="unbounded" type="MidiCCDevice"/>
#SingleInstance FORCE
#NoEnv
^`::
DetectHiddenWindows, off
IfWinExist, bash
{
wingetpos, wx, wy, wwidth, wheight
counter=0
<?xml version="1.0"?>
<settings>
<console change_refresh="10" refresh="100" rows="25" columns="186" buffer_rows="500" buffer_columns="0" shell="" init_dir="" start_hidden="0" save_size="1">
<colors>
<color id="0" r="0" g="0" b="0"/>
<color id="1" r="0" g="0" b="128"/>
<color id="2" r="0" g="150" b="0"/>
<color id="3" r="0" g="150" b="150"/>
<color id="4" r="170" g="25" b="25"/>
<color id="5" r="128" g="0" b="128"/>
package dispatch
class HttpInsecure extends Http {
override def make_client = {
import java.net.{Socket}
import javax.net.ssl.{X509TrustManager, SSLContext}
import java.security.{KeyStore}
import java.security.cert.{X509Certificate}
import org.apache.http.conn.scheme.{Scheme}
import org.apache.http.conn.ssl.{SSLSocketFactory}
@eed3si9n
eed3si9n / ivy.xml
Created March 21, 2011 19:34
unfiltered-json_2.8.1
<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0" xmlns:e="http://ant.apache.org/ivy/extra">
<info organisation="net.databinder" module="unfiltered-json_2.8.1" revision="0.3.3-SNAPSHOT" status="release" publication="20110321140836"/>
<configurations>
<conf name="optional" visibility="public" description=""/>
<conf name="system" visibility="public" description=""/>
<conf name="sources" visibility="public" description=""/>
<conf name="compile" visibility="public" description=""/>
<conf name="provided" visibility="public" description=""/>
<conf name="sxr" visibility="public" description=""/>
object ErrorAsOk{
import unfiltered.request._
import unfiltered.response._
def unapply[T](request: HttpRequest[T]): Option[Wrapper] = request match {
case Params(params) =>
params("ok") match {
case "" :: xs => Some(NotOkWrapper)
case "0" :: xs => Some(NotOkWrapper)
case "false" :: xs => Some(NotOkWrapper)