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 HelloAndroidTest extends ActivityInstrumentationTestCase2<Hello> { | |
private Hello mActivity; | |
private TextView mView; | |
private String resourceString; | |
public HelloAndroidTest() { | |
super("com.livando.hello", Hello.class); | |
} | |
@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
class Tasks extends SQLiteOpenHelper implements DB { | |
private static final String DATABASE_NAME = "task.db"; | |
private static final int DATABASE_VERSION = 1; | |
public Tasks(Context context) { | |
super(context, DATABASE_NAME, null, DATABASE_VERSION); | |
} | |
@Override | |
public void onCreate(SQLiteDatabase db) { |
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.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class AverageNumber { | |
public static void main(String[] args) { | |
AverageNumber ave = new AverageNumber(); |
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
<!-- put asset into context --> | |
$context.putPageValue("data", $asset) | |
<!-- put view in context used to populate table, ../asset/previewlink.xml --> | |
$context.putPageValue("view", "asset/previewlink") | |
$context.putPageValue("searcher", $mediaarchive.getAssetSearcher()) | |
$pages.include("/${applicationid}/components/xml/detaileditor.html?detailsreadonly=true", $context) |
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
#Gemfile | |
group :development, :test do | |
gem 'rb-fsevent', :require => false if RUBY_PLATFORM =~ /darwin/i | |
gem 'guard-livereload' | |
end | |
#Command Line | |
guard init livereload | |
guard | |
#Chrome | |
select 'LR' button |
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
#Gemfile | |
group :development, :test do | |
gem 'rb-fsevent', :require => false if RUBY_PLATFORM =~ /darwin/i | |
gem 'guard-livereload' | |
end | |
#Command Line | |
guard init livereload | |
guard |
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
var filename = jQuery("#uploadform #fileName").val(); | |
var characterReg = /^\s*[a-zA-Z0-9\._,\s]+\s*$/; | |
if(!characterReg.test(filename)) | |
alert("NOT OK " + filename); |
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
`echo "installing EnterMedia Digital Asset Management System"` | |
`brew install wget` |
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 org.visualdata.rest; | |
import static org.junit.Assert.assertEquals; | |
import static org.junit.Assert.assertNotNull; | |
import java.util.Iterator; | |
import org.apache.commons.httpclient.HttpClient; | |
import org.apache.commons.httpclient.NameValuePair; | |
import org.apache.commons.httpclient.methods.PostMethod; |
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 void testVisualDataIngest() throws Exception { | |
String testname = "ingest"; | |
String sourcepath = "test/" + testname + ".mp4"; | |
PostMethod method = getIngestPostMethod(sourcepath, testname); | |
assertEquals(200, getClient().executeMethod(method)); | |
Element root = getXml(method.getResponseBodyAsStream()); | |
assertTrue(root.elements().size() > 0); |
OlderNewer