Skip to content

Instantly share code, notes, and snippets.

Rainer Eli claushellsing

Block or report user

Report or block claushellsing

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@claushellsing
claushellsing / combinations.js
Created Oct 4, 2015
Create all the N combinations of a characters
View combinations.js
/**
* Created by Usuario on 03/10/2015.
*/
var available_characters = ["a","b"];
console.log(combinations(available_characters,5));
function combinations(available_characters,count_char)
{
var acum_results = {combs : []};
View gist:3281949
[{"fechas":{"anyo":"2012","semestre":"2"},"asignaturas":[{"asignatura":{"nombre":"simulacion","id":"1"},"grupos":[{"grupo":"5t2","idgrupos":"1"},{"grupo":"5t1","idgrupos":"2"}]},{"asignatura":{"nombre":"inteligencia artifucal","id":"4"},"grupos":[{"grupo":"5c1","idgrupos":"4"},{"grupo":"5c2","idgrupos":"5"}]}]}]
@claushellsing
claushellsing / whitelist.cs
Created Jun 7, 2012
This is how i mean to store the white list
View whitelist.cs
public Dictionary<String, String[]> WhiteListTagStyle = new Dictionary<string, String[]>()
{
{"p",new String[]{""}},
{"a",new String[]{"href"}},
{"img",new String[]{"src","alt","width","height"}}
};
View parse.html
<html>
<head>
<title></title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.tablesorter.js"></script>
<script type="text/javascript">
var stripExtraTags = function(ObjCollection) {
ObjCollection.each(function () {
$(this).html($(this).text());
});
@claushellsing
claushellsing / tablesorter.html
Created Jun 6, 2012
Test Sort Table publing
View tablesorter.html
<html>
<head>
<title></title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.tablesorter.js"></script>
<script type="text/javascript">
$(document).ready(function () {
// body...
$.tablesorter.addWidget({
id:"transformer",
You can’t perform that action at this time.