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
From 6bdb5cd42244ee0ec1778add6dfb742df4119516 Mon Sep 17 00:00:00 2001 | |
From: Marius B. Kotsbak <marius@kotsbak.com> | |
Date: Sun, 17 Apr 2011 14:38:20 +0200 | |
Subject: [PATCH] Added GPS support for F5521gw (HSPA+ module for Lenovo Thinkpad), USB ID 0bdb:1911. | |
--- | |
utils/10-mbm.fdi | 2 +- | |
1 files changed, 1 insertions(+), 1 deletions(-) | |
diff --git a/utils/10-mbm.fdi b/utils/10-mbm.fdi |
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
From 6bdb5cd42244ee0ec1778add6dfb742df4119516 Mon Sep 17 00:00:00 2001 | |
From: Marius B. Kotsbak <marius@kotsbak.com> | |
Date: Sun, 17 Apr 2011 14:38:20 +0200 | |
Subject: [PATCH] Added GPS support for F5521gw (HSPA+ module for Lenovo Thinkpad), USB ID 0bdb:1911. | |
--- | |
utils/10-mbm.fdi | 2 +- | |
1 files changed, 1 insertions(+), 1 deletions(-) | |
diff --git a/utils/10-mbm.fdi b/utils/10-mbm.fdi |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
#!/bin/bash | |
# | |
# Requires the following line in /etc/network/interfaces: | |
# iface wwan0 inet dhcp | |
# | |
sudo /etc/init.d/network-manager stop | |
echo AT+CGDCONT=1,"IP","internet.netcom.no" > /dev/ttyUSB2 | |
sudo modprobe qmi_wwan |
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
#!/bin/bash | |
sudo ifdown wwan0 | |
qmi-network /dev/cdc-wdm0 stop | |
sudo /etc/init.d/network-manager start |
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
# Mostly from django-fab-deploy | |
import os | |
import sys | |
from datetime import datetime | |
from subprocess import Popen, PIPE | |
import yaml | |
from fabric.api import env, run, sudo, task |
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 controllers | |
import play.api.http.{ContentTypes, ContentTypeOf} | |
import upickle.Js | |
import upickle.default._ | |
import play.api.mvc._ | |
import scala.concurrent.Future | |
import scala.concurrent.ExecutionContext.Implicits.global |
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
In Application.scala: | |
object MyServer extends AutowirePlayServer[Api] { | |
override def routes(target: Api) = route[Api](target) | |
override def createImpl(autowireContext: AutowireContext): Api = new ServerImpl(autowireContext) | |
} | |
object Application extends Controller { | |
def api = PlayAutowire.api(MyServer)_ | |
} |
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
"test test" in { | |
case class Test(a: Int) | |
Some(Test(1)) must beSome[Test].matching.a(1) | |
} |
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
import clang.cindex | |
import os, textwrap, StringIO | |
from clang.cindex import Config, Index, CursorKind | |
clib_scalanative_path = '/Users/timothyklim/Development/scala-native/clib/src/main/scala/scala/scalanative/libc' | |
scalatypes_map_dict = { | |
"int": "CInt" | |
"void": "Unit", |
OlderNewer