This file contains hidden or 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
Schema::create('quizzes', function(Blueprint $table) | |
{ | |
$table->increments('id'); | |
$table->string('title'); | |
$table->text('description'); | |
$table->integer('type'); | |
$table->boolean('active')->default(true); | |
$table->timestamp('time_limit'); | |
$table->integer('viewed')->default(0); | |
$table->integer('answered')->default(0); |
This file contains hidden or 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/bash | |
cd /usr/local/src | |
mkdir maven | |
cd maven | |
wget http://mirrors.ispros.com.bd/apache/maven/maven-3/3.2.2/binaries/apache-maven-3.2.2-bin.tar.gz | |
tar -zxf apache-maven-3.2.2-bin.tar.gz | |
cd ~ | |
ln -s /usr/local/src/maven/apache-maven-3.2.2/bin/mvn /usr/local/bin/mvn | |
#to check version |
This file contains hidden or 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 static void loadServiceDetails(URI serviceConfigFilesLocation) | |
{ | |
File[] serviceFiles = new File(serviceConfigFilesLocation).listFiles( | |
new FilenameFilter() | |
{ | |
public boolean accept(File dir, String name) | |
{ | |
return name.toLowerCase().endsWith(".xml"); | |
} | |
} |
This file contains hidden or 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
<select id="findNewsCollection" parameterType="map" resultMap="newsSummary"> | |
SELECT | |
id, slug, summary, created_at, viewed, | |
image, CONCAT(gtype,',', cleague, event,',', other) as tags | |
FROM news | |
<choose> | |
<when test="OnlyWorldCup != null"> | |
WHERE is_worldcup=TRUE |
This file contains hidden or 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.webdev.pavilion.news; | |
import com.webdev.common.orm.ORMFactory; | |
import com.webdev.common.service.ApiService; | |
import com.webdev.common.service.request.ServiceRequest; | |
import com.webdev.common.service.response.ServiceResponse; | |
import com.webdev.pavilion.news.mapper.NewsMapper; | |
import org.apache.ibatis.session.SqlSessionManager; | |
import java.util.Map; |
This file contains hidden or 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
* Downloaded or downloading | |
============================= | |
**http://kickass.to/infiniteskills-learning-jquery-mobile-working-files-t7967156.html | |
**http://kickass.to/lynda-bootstrap-3-advanced-web-development-2013-eng-t8167587.html | |
**http://kickass.to/lynda-css-advanced-typographic-techniques-t7928210.html | |
**http://kickass.to/lynda-html5-projects-interactive-charts-2013-eng-t8167670.html | |
**http://kickass.to/vtc-html5-css3-responsive-web-design-course-t7922533.html | |
*http://kickass.to/10gen-m101js-mongodb-for-node-js-developers-2013-eng-t8165205.html | |
*http://kickass.to/cbt-nuggets-amazon-web-services-aws-foundations-t7839734.html |
This file contains hidden or 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
// Imports required | |
import java.text.SimpleDateFormat; | |
import java.text.ParseException; | |
/** | |
* Convert a date to a different format. | |
* | |
* @param currentFormat The current date format | |
* @param newFormat The new date format | |
* @param subject The date that's going to be converted |
This file contains hidden or 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
// Imports required | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.Scanner; | |
/** | |
* Read in a file. | |
* | |
* @param path The explicit path to the file to read | |
* @return The contents of the file as a string |
This file contains hidden or 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
// Imports required | |
import java.sql.ResultSet; | |
import java.sql.ResultSetMetaData; | |
import java.sql.SQLException; | |
/** | |
* Print a result set to system out. | |
* | |
* @param rs The ResultSet to print | |
* @throws SQLException If there is a problem reading the ResultSet |
This file contains hidden or 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
/** | |
* Mimics PHP's ucfirst function. | |
* | |
* @param subject The string to be ucfirst'd | |
* @return The subject string with an uppercased first character | |
*/ | |
final public static String ucfirst(String subject) | |
{ | |
return Character.toUpperCase(subject.charAt(0)) + subject.substring(1); | |
} |