Skip to content

Instantly share code, notes, and snippets.

try{}catch(a){}
try{}catch(a){}
try{}catch(a){}
try{}catch(a){}
try{}catch(a){}
try{}catch(a){}
try{}catch(a){}
try{}catch(a){}
try{}catch(a){}
try{}catch(a){}
@Ferossgp
Ferossgp / github.js
Last active May 20, 2019 14:13
Github Integration for Rocket Chat
/* exported Script */
// Begin embedded images
const gh_cmit_svg = '<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="octicon octicon-git-commit" height="16" version="1.1" viewBox="0 0 14 16" width="14"><path d="M10.86 7c-.45-1.72-2-3-3.86-3-1.86 0-3.41 1.28-3.86 3H0v2h3.14c.45 1.72 2 3 3.86 3 1.86 0 3.41-1.28 3.86-3H14V7h-3.14zM7 10.2c-1.22 0-2.2-.98-2.2-2.2 0-1.22.98-2.2 2.2-2.2 1.22 0 2.2.98 2.2 2.2 0 1.22-.98 2.2-2.2 2.2z"></path></svg>';
const gh_pr_svg = '<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="octicon octicon-git-pull-request" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M11 11.28V5c-.03-.78-.34-1.47-.94-2.06C9.46 2.35 8.78 2.03 8 2H7V0L4 3l3 3V4h1c.27.02.48.11.69.31.21.2.3.42.31.69v6.28A1.993 1.993 0 0 0 10 15a1.993 1.993 0 0 0 1-3.72zm-1 2.92c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zM4 3c0-1.11-.89-2-2-2a1.993 1.993 0 0 0-1 3.72v6.56A1.993 1.993 0 0 0 2 15a1.993 1.993 0 0 0 1-3.72V4.72c.59-.34
@Ferossgp
Ferossgp / linkedlist.java
Created November 28, 2017 10:37
LinkedList Implementation
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
class Node <E>
{
Node<E> next;
Node<E> prev;
E data;
@Ferossgp
Ferossgp / Bag.java
Last active August 14, 2017 13:10
My implementation of Bag (Multiset) in Java
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
public class Bag<E> {
private Map<E,Integer> map;
public Bag() {
map = new HashMap<E, Integer>();
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.