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
<?xml version="1.0" encoding="UTF-8"?> | |
<Configuration status="WARN"> | |
<Appenders> | |
<Console name="Console" target="SYSTEM_OUT"> | |
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/> | |
</Console> | |
<File name="File1" fileName="target/app.log" bufferedIO="false"></File> | |
</Appenders> | |
<Loggers> | |
<Root level="trace" additivity="true"> |
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 ca.uwo.csd.cs2212.USERNAME; | |
import javax.swing.SwingUtilities; | |
public class App { | |
public static void main(String[] args) { | |
SwingUtilities.invokeLater(new Runnable() { | |
@Override | |
public void run() { |
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 ca.uwo.csd.cs2212.USERNAME; | |
import java.lang.StringBuilder; | |
public class Address { | |
private String street; | |
private String city; | |
private String country; |
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 ca.uwo.csd.cs2212.USERNAME; | |
import javax.swing.SwingUtilities; | |
public class App { | |
public static void main(String args[]) { | |
SwingUtilities.invokeLater(new Runnable() { | |
@Override |
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 ca.uwo.csd.cs2212.USERNAME; | |
public class Customer { | |
private String firstName; | |
private String lastName; | |
private String gender; | |
private String planName; | |
private double balanceOwing; |
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 ca.uwo.csd.cs2212.USERNAME; | |
import javax.mail.*; | |
import javax.mail.internet.*; | |
import java.util.*; | |
public class App { | |
private final static String SENDER_NAME = "John Doe"; | |
private final static String SENDER_EMAIL = "jdoe@example.com"; |
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
<%= form_for [@test, @attempt, @question, @response] do |f| %> | |
<label><%= @question.question_text %></label> | |
<%= f.text_area :response_text %> | |
<%= f.submit 'Next >' %> | |
<% end %> |
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 <stdio.h> | |
#include <stdlib.h> | |
#define NAME_LENGTH 20 | |
int main() | |
{ | |
char name[NAME_LENGTH]; | |
printf("Please enter your name: "); |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netdb.h> | |
struct addrinfo* get_sockaddr(const char* hostname, const char* port) | |
{ |
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
--- lxc-ubuntu 2014-12-07 13:23:40.000000000 -0500 | |
+++ lxc-ubuntu-new 2015-07-28 15:49:46.633633812 -0400 | |
@@ -46,6 +46,41 @@ | |
. /etc/default/lxc | |
fi | |
+# Check if given path is in a btrfs partition | |
+is_btrfs() | |
+{ | |
+ [ -e $1 -a $(stat -f -c '%T' $1) = "btrfs" ] |
OlderNewer