View workspace.log
!SESSION 2016-02-16 23:09:15.717 -----------------------------------------------
eclipse.buildId=3.7.2.201511261048-RELEASE-e45
java.version=1.8.0_66
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -product org.springsource.sts.ide -keyring /Users/abhishek/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.springsource.sts.ide -keyring /Users/abhishek/.eclipse_keyring -showlocation
This is a continuation of log file /Users/abhishek/work/java/sts-mars-workspace/.metadata/.bak_0.log
Created Time: 2016-02-16 23:12:35.018
View app.js
/*
This assumes that your bower_components folder is /assets. I renamed it in .bower.json for sanities sake.
I use baseUrl = '/js' as this is where all my custom javascript is and requirejs can't navigate
bower's folder structure anyway.
*/
requirejs.config({
paths: {
View gist:7afff4551ba881655e83
requirejs.config({
shim: {
'foundation/jquery.foundation.topbar': {
deps: ['jquery'],
},
'foundation/jquery.cookie': {
deps: ['jquery']
},
'foundation/jquery.event.move': {
deps: ['jquery']
View JaroWrinker.java
/**
* <p>Find the Jaro Winkler Distance which indicates the similarity score between two Strings.</p>
*
* <p>The Jaro measure is the weighted sum of percentage of matched characters from each file and transposed characters.
* Winkler increased this measure for matching initial characters.</p>
*
* <p>This implementation is based on the Jaro Winkler similarity algorithm
* from <a href="http://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance">http://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance</a>.</p>
*/
public class JaroWrinker {
View pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.gordondickens.sample</groupId>
<artifactId>sample-parent</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
View Quotes
> I do not enlighten those who are not eager to learn,
> nor arouse those who are not anxious to give an explanation themselves.
> If I have presented one corner of the square and they cannot come
> back to me with the other three,
> I should not go over the points again.
Confucius
> Below the surface of the machine, the program moves.
> Without effort, it expands and contracts.
> In great harmony, electrons scatter and regroup.
View gist:2c6e0d02a4607b79354c
# Pushing Changes to the Blog Source
cd octopress
git add .
git commit -m 'modded blog source'
git push origin source
# create a new post
rake new_post["title"]
#Images
View gist:63b3dd8b9aed5f54914d
Basically, you need to create and link the deploy directory to master branch.
First, we clone the repo and switch to the correct branch:
1) git clone https://github.com/username/username.github.io.git
2) git checkout source
Then we need to setup the deploy directory.
1) mkdir _deploy
2) cd _deploy
3) git init
View pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.abhiea.hcl.ge</groupId>
<artifactId>gem</artifactId>
<version>1.0.0</version>
<packaging>war</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
View sts.ini
-vm
C:/Program Files (x86)/Java/jdk1.7.0_25/bin/javaw.exe
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20130521-0416
-product
org.springsource.sts.ide
--launcher.defaultAction
openFile