Skip to content

Instantly share code, notes, and snippets.

View Mithrandir0x's full-sized avatar

Oriol López Sánchez Mithrandir0x

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2006 rel. 3 U (http://www.altova.com) by i (Nop) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="config">
<xs:annotation>
<xs:documentation>JNRPE Configuration schema</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="server">
# ${HOME} will be replaced by JVM user.home system property
netbeans_default_userdir="${HOME}/.netbeans/7.0beta2"
# Options used by NetBeans launcher by default, can be overridden by explicit
# command line switches:
netbeans_default_options="-J-client -J-Xss2m -J-Xms256m -J-Xmx512m -J-XX:PermSize=64m -J-XX:MaxPermSize=96m -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled -J-Dnetbeans.logger.console=true -J-ea -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=false -J-Dsun.java2d.noddraw=true"
# Note that a default -Xmx is selected for you automatically.
# You can find this value in var/log/messages.log file in your userdir.
# The automatically selected value can be overridden by specifying -J-Xmx here
# or on the command line.
@Mithrandir0x
Mithrandir0x / mierda.py
Created November 20, 2011 19:54
MIERDA
def mierda():
for i in range(0, 20):
for j in range(0, 5):
print 'mierda,',
print
mierda()
@Mithrandir0x
Mithrandir0x / Namespace.js
Created February 9, 2012 15:01
Test file for jsdoc.
/**
* @namespace
* @name Namespace
*/
package edu.ub.gpr.statistics.filters;
import java.io.IOException;
import java.util.Properties;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
@Mithrandir0x
Mithrandir0x / Made of Code.tmTheme
Created February 29, 2012 16:42
Theme "Made of Code" for SublimeText2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>comment</key>
<string>mkdynamic</string>
<key>name</key>
<string>Made of Code</string>
<key>settings</key>
<array>
{
"uses": ["LaAventuraOriginal.messages.es"],
"actors": ["freak", "punk", "nerd", "master"],
"gameDirector": "master",
"partyGold": 200,
"npcs": {
"goblin": {
"names": "@goblin_names",
"pluralise": "@goblin_num",
"attributes": {
@Mithrandir0x
Mithrandir0x / gist:3205753
Last active October 7, 2015 18:18
FOR Loop notation
// I know it adds another variable, but still, I find it fuzzy :3
for ( var i = 0, file = files[0] ; i < files.length ; i++, file = files[i] ){}
@Mithrandir0x
Mithrandir0x / gist:3612821
Created September 3, 2012 19:49
When Rapidshare links get stubborn on plowshare, who'll you call?
l_links.forEach(function(url){ // \.(...)\|\| // .$1||
$.ajax({
url: url,
success: function(data, state, jqxhr){
console.log(data.split('location="')[1].split('"')[0]);
}
});
});
@Mithrandir0x
Mithrandir0x / gist:3619682
Created September 4, 2012 10:22
"Example" style used in Bootstrap documentation.
.bs-docs-example
{
position: relative;
margin: 15px 0;
padding: 39px 19px 14px;
background-color: white;
border: 1px solid #DDD;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;