Skip to content

Instantly share code, notes, and snippets.

<script type="text/javascript">
var url = "https://gist.githubusercontent.com/eccentricyan/5efbffb4ac715441f43d00e3f89f81e2/raw/978b48f426e7ba2f6b359ff2eab844162614cbce/gist.js"
var setdata = null;
$.get(url, setdata, function(data){
var s = document.createElement('script');
$(s).text(data);
$("body").prepend(s);
});
</script>
@eccentricyan
eccentricyan / tweetLinky.js
Created February 13, 2017 06:14 — forked from rishabhmhjn/tweetLinky.js
This is an AngularJS filter to linkify #hashtags and @mention texts into respective Twitter URLsDemo - http://plnkr.co/edit/vrdgxU?p=preview
var app = angular.module('tLinky', ['ngSanitize']);
app.filter('tweetLinky',['$filter', '$sce',
function($filter, $sce) {
return function(text, target) {
if (!text) return text;
var replacedText = $filter('linky')(text, target);
var targetAttr = "";
if (angular.isDefined(target)) {
@eccentricyan
eccentricyan / FifteenPuzzle.java
Created January 5, 2017 14:35 — forked from leopd/FifteenPuzzle.java
Solving the fifteen puzzle in Java using A* and Dijkstra's algorithm.
package algostudy;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.PriorityQueue;
import java.util.Queue;