Skip to content

Instantly share code, notes, and snippets.

@Anzumana
Anzumana / clistudios.user.js
Last active September 3, 2015 21:56
Tampermonkey / Greasmonkey Script to enhance http://www.clistudios.com/ Experience Tested with Tampermonkey . Please Report any issues with the script
// ==UserScript==
// @name Clistudio Script
// @namespace http://www.clistudios.com/
// @description Dance Studio Online
// @author Anzumana Taal
// @match http://www.clistudios.com/*
// @grant none
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
// @downloadURL https://gist.github.com/Anzumana/02a1154bd59407dcc4fa/raw/clistudios.user.js
// @updateURL https://gist.github.com/Anzumana/02a1154bd59407dcc4fa/raw/clistudios.user.js
var page = require('webpage').create();
page.open('http://localhost:8999', function(status) {
});
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
@Anzumana
Anzumana / regex1
Last active December 18, 2015 13:08
%s/<p class=\"_90_Kolumnentite_90_Kt1_lb\">Theodor Fontane <span class=\"semibold-semicondensed _idGenCharOverride-2\">Effi Briest<\/span><\/p>/\="<span epub:type=\"pagebreak\" id=\"page".Incr()."\" title=\"".Incr2(). "\"\/>"
@Anzumana
Anzumana / grab links.bookmarklet
Created December 27, 2015 12:53 — forked from ttscoff/grab links.bookmarklet
Create a bookmark and paste the code from `grab links.bookmarklet` into the url. Trigger it on a page containing links you want to save and then click the section of the page containing the links. A Markdown list of all links will be generated, and clicking the resulting list will select all for copying.
@Anzumana
Anzumana / Incr.vim
Last active January 13, 2016 15:13
let g:incr = 1
let g:incr2 = 1
fu! Incr()
let g:incr = g:incr - 1
return g:incr
endfu
fu! Incr2()
let g:incr2 = g:incr2 - 1
<VirtualHost *:80>
</VirtualHost>
for(var i = 0 ; i < $scope.data.filteredLinesArray.length ; i++){
if(!($scope.data.filteredLinesArray[i].currentChanges.length > 0)){
$scope.data.filteredLinesArray.splice(i,1);
//reset index else we miss elements of the array since we use splice to removed an element
i = -1;
}
}
#!/usr/bin/env perl
use 5.24.0;
use warnings;
use Term::ANSIColor;
chomp( my @branches
= qx/git show -s --pretty='%cn|%ci %D' \$(git rev-parse --branches --remotes)/
);
my %branches_for;
var tmp = [];
for(var i=0; i< data.length;i++){
if(tmp.indexOf(data[i].category) == -1){
tmp.push(data[i].category);
}
}
console.log('this is my result');
console.log(tmp);