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
# Copyright 1999-2015 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Header: /var/cvsroot/gentoo-x86/xfce-extra/xfce4-eyes-plugin/xfce4-eyes-plugin-4.4.4.ebuild,v 1.1 2015/03/28 20:46:39 mgorny Exp $ | |
EAPI=5 | |
inherit xfconf | |
inherit cmake-utils | |
DESCRIPTION="A panel plug-in which adds classic eyes to your every step" | |
HOMEPAGE="http://goodies.xfce.org/projects/panel-plugins/xfce4-eyes-plugin" |
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
public class InfinteRoom { | |
class Customer { .... } | |
class Room { ... } | |
Map<Customer, Room> booking = new Map<Customer, Room>(); | |
void checkIn(Customer guest) { | |
Room newRoom = new Room(); | |
booking.put(guest, newRoom); | |
} |
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
scala> val center = Int.MaxValue / 2 | |
center: Int = 1073741823 | |
scala> def homeIndex(size: Int) = (center - (center % size)) | |
homeIndex: (size: Int)Int | |
scala> homeIndex(1) % 1 | |
res53: Int = 0 | |
scala> homeIndex(2) % 2 |
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
* Where: | |
Build file '/home/brianhsu/WorkRoom/sidc/remoter/build.gradle' line: 9 | |
* What went wrong: | |
A problem occurred evaluating project ':remoter'. | |
> Could not create plugin of type 'AppPlugin'. | |
* Try: | |
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. |
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 <cv.h> | |
#include <math.h> | |
#include <gsl/gsl_fit.h> | |
using namespace cv; | |
class LineFunction { | |
public: | |
LineFunction(double ax, double by, double c); | |
LineFunction(Point2d point1, Point2d point2); |
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 tw.com.zhenhai.util | |
object KeepRetry { | |
def apply(block: => Any) { | |
try { | |
block | |
} catch { | |
case e: Exception => | |
e.printStackTrace() |
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
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script> | |
</head> | |
<body> | |
<svg | |
xmlns:dc="http://purl.org/dc/elements/1.1/" | |
xmlns:cc="http://creativecommons.org/ns#" | |
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | |
xmlns:svg="http://www.w3.org/2000/svg" |
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
<iframe id="song1" scrolling="no" src="" frameborder="no" height="200" width="100%"></iframe> | |
<script> | |
var soundCloudID = "try" | |
var playerURL = "https://w.soundcloud.com/player/?url=https%3A//soundcloud.com/kptaipei/" + soundCloudID + "&color=ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false"; | |
$('#song1').attr(src, playerURL); | |
</script> |
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
1 var fs = require("fs"); | |
2 var path = require("path") | |
3 var pathname = process.argv[2]; | |
4 var extension = "." + process.argv[3]; | |
5 | |
6 fs.readdir(pathname, function(err, list) { | |
7 var filtered = list.filter(function(e) { return path.extname(e) == extension }) | |
8 filtered.forEach(function(path) { | |
9 console.log(path) | |
10 }) |
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
http://lovepeyling.pixnet.net/blog/post/46175302-%E9%B9%B9%E9%A4%85%E4%B9%BE-flourless--salty-crackers-%E7%84%A1%E9%BA%B5%E7%B2%89 |