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 Qt 4.7 | |
import org.kde.plasma.core 0.1 as PlasmaCore | |
import org.kde.plasma.graphicswidgets 0.1 as PlasmaWidgets | |
Item { | |
id: pomodoro | |
PlasmaWidgets.PushButton { | |
id: button | |
anchors { |
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/sh | |
# Auto-LUKS : Automatically open multiple LUKS containers with a single passphrase | |
# Aeris <aeris@imirhil.fr> | |
# Licensed under AGPLv3 or later | |
PREREQ="" | |
prereqs() { | |
echo "$PREREQ" | |
} |
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 String foreignKeyColumnName(final String propertyName, | |
final String propertyEntityName, final String propertyTableName, | |
final String referencedColumnName) { | |
return this.columnName(propertyTableName) + "_" | |
+ this.columnName(referencedColumnName); | |
} |
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 ruby | |
# Licence : AGPLv3+ | |
require 'cgi' | |
require 'fileutils' | |
require 'optparse' | |
require 'rotp' | |
require 'tempfile' | |
require 'uri' | |
class GoogleAuthenticator |
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 DateTimeRange { | |
private final DateTime start; | |
private final DateTime end; | |
public DateTimeRange(final DateTime start, final DateTime end) { | |
this.start = start; | |
this.end = end; | |
} | |
public DateTime getStart() { |
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 ruby | |
#encoding: utf-8 | |
require 'sqlite3' | |
SEPARATOR = '' | |
class Stats | |
DB_FILE=File.join Dir.home, ".xd.sqlite3" |
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 java.lang.annotation.ElementType; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.lang.annotation.Target; | |
@Retention(RetentionPolicy.RUNTIME) | |
@Target(ElementType.TYPE) | |
public @interface DbSchema { | |
String value(); | |
} |
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
### BEGIN INIT INFO | |
# Provides: firewall | |
# Required-Start: $local_fs $network | |
# Required-Stop: $local_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
### END INIT INFO | |
#!/bin/sh |
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 ruby | |
$: << '/usr/lib/ruby/1.9.1/x86_64-linux' | |
require 'RRD' | |
require 'json' | |
require 'httparty' | |
COLORS = { | |
:dark => { | |
:red => '#CC3118', | |
:orange => '#CC7016', |
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 NpeWithoutMethodCall { | |
public static void main(String[] args) { | |
Integer defaultValue = null; | |
Integer value = true ? defaultValue : 0; | |
} | |
} | |
// javac NpeWithoutMethodCall.java && NpeWithoutMethodCall Foo | |
// Exception in thread "main" java.lang.NullPointerException | |
// at NpeWithoutMethodCall.main(NpeWithoutMethodCall.java:4) |