View bookmarklet-remove-unreachable-refs.js
javascript: (function(){var a=null;document.querySelectorAll('a.js-selected-navigation-item').forEach(function(b){'Code'===b.innerText.trim()&&(a=b.href)}),document.querySelectorAll('.discussion-item-ref').forEach(function(b){var c=b.querySelector('.commit-meta a');c&&window.fetch(a+'/branch_commits/'+c.innerText).then(function(d){return d.text()}).then(function(d){d.trim().length||b.remove()})})})();
View jsx-it-markdown+react-jsx.js
'use strict';
const md = require('markdown-it')();
const mdJsxPlugin = require('markdown-it-jsx');
const reactJsx = require('react-jsx');
const React = require('react');
const reactDom = require('react-dom/server');
const originalCreateElement = React.createElement;
View v1.0-karma1.md

love and peace

[![love and peace](https://img.shields.io/badge/%F0%9F%92%9B%E2%9C%8C%EF%B8%8F-v1.0--karma1-c28fcc.svg)](https://gist.github.com/Xiphe/aa89d804f8137c963d27)

LOVE AND PEACE

Dieses Produkt wurde in der Überzeugung geschrieben, gestaltet oder anderweitig hergestellt, dass wir die Welt durch Liebe und Frieden zu einem besserem Ort machen können.

View jquery.bridge.js
/** @const */
var PLUGIN_NAME = 'myPlugin';
$.fn[PLUGIN_NAME] = function(options) {
var $els = this;
/* Method call: */
if (typeof options === 'string') {
var methodName = options;
var args = Array.prototype.slice.call(arguments, 1);
View angular-module.md

How to use require in angular 1.x modules

  • embrace module structure (1x require = module is available)
// my/app.js
require('../dep/app');
angular.module('myApp', ['dep']);
require('./value');
View remove_bower.md

Remove /bower_components/ from github diff

Array.prototype.forEach.call(document.querySelectorAll('[title*="/bower_components/"]'), function(node){
  node.parentNode.parentNode.parentNode.remove();
});

Bookmarklet can be found after this link: http://xiphe.net/remove_bower_components_bookmarklet.html

View script.js
{
init: function(elevators, floors) {
function unique(arr) {
var a = arr.concat();
for(var i=0; i<a.length; ++i) {
for(var j=i+1; j<a.length; ++j) {
if(a[i] === a[j])
a.splice(j--, 1);
}
}
View bower.json
{
"name": "jasmine-moar-matchers",
"authors": [
"Hannes Diercks"
],
"description": "Some additional Jasmine 2.0 Matchers.",
"main": ["toBeInstanceOf.js", "toBeTypeOf.js", "promises.js"],
"keywords": [
"jasmine",
"matcher"
View MyClass.js
/**
* Just a simple example Class
* Main point here is: This is completely independent from di implementations
* We could as well require this file and instantiate the Class on our own
*/
function MyClass(myOtherClass, readFile) {
this.myOtherClass = myOtherClass;
this.readFile = readFile;
this.doThings = function() {};
}
View google-webfonts-categories.json
{
"Handwriting": [
"Patrick Hand SC",
"Grand Hotel",
"Calligraffitti",
"Coming Soon",
"Crafty Girls",
"Homemade Apple",
"Just Another Hand",
"Montez",