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
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.test"> | |
<application android:allowBackup="true" android:label="@string/app_name"> | |
<receiver android:name=".Receiver" > | |
<intent-filter> | |
<action android:name="com.test.message" /> | |
</intent-filter> | |
</receiver> |
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
func existingLog() -> String? { | |
if let logFileHandle = NSFileHandle(forReadingAtPath: logFile) { | |
let data = logFileHandle.readDataToEndOfFile() | |
return NSString(data:data, encoding:NSUTF8StringEncoding) as String? | |
} | |
return nil | |
} | |
func log(log: String) { | |
let logLine = "\(NSDate()) \(log)\n" |
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 test; | |
import java.util.List; | |
public class LoginInfo { | |
public class DeviceInfo { | |
public String deviceId; | |
public String deviceType; | |
public String deviceOs; | |
public int deviceVersion; |
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 pymongo | |
import json | |
import os | |
from datetime import datetime | |
from itertools import chain | |
from pprint import pprint | |
from flask import Flask, session, request, abort, make_response | |
app = Flask(__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
nav | |
ul | |
each doc in getCollection('documents').findAll({nav : { $exists : true}}).toJSON() | |
li | |
a(href=doc.url) | |
!= doc.nav |
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 our signing key | |
sudo wget -O - http://debian.neo4j.org/neotechnology.gpg.key | apt-key add - | |
# Create an Apt sources.list file | |
sudo echo 'deb http://debian.neo4j.org/repo stable/' > /etc/apt/sources.list.d/neo4j.list | |
# Find out about the files in our repository | |
sudo apt-get update | |
# Install Neo4j, community edition | |
sudo apt-get install neo4j | |
# start neo4j server, available at http://localhost:7474 of the target machine | |
sudo service neo4j-service 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<!------------------------------ | |
Sharp Theme by UltraLinx/ | |
http://themes.theultralinx.com | |
------------------------------> | |
<meta charset="UTF-8"> | |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<!------------------------------ | |
Sharp Theme by UltraLinx | |
http://themes.theultralinx.com | |
------------------------------> | |
<meta charset="UTF-8"> | |
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 com.dodedooh.jobdispatcher.data; | |
import java.util.List; | |
import java.util.logging.Logger; | |
import javax.ejb.Stateless; | |
import javax.ejb.TransactionAttribute; | |
import javax.ejb.TransactionAttributeType; | |
import javax.inject.Inject; | |
import javax.persistence.EntityManager; |