This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
''' | |
This is a blender script to convert an object to a literal java array | |
''' | |
result = "static float coords[] = {\n" | |
current_obj = bpy.context.active_object |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package webGrude; | |
import webGrude.annotations.Page; | |
import webGrude.annotations.Selector; | |
import java.util.List; | |
public class PirateBayExample { | |
@Page("http://thepiratebay.se/search/{0}/0/7/0") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import webGrude.annotations.Page; | |
import webGrude.annotations.Selector; | |
import java.util.List; | |
public class PrintExampleSearchResults { | |
@Selector("") | |
public static class SearchResult{ | |
@Selector(".result-title") public String resultTitle; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SearchResult{ | |
public String resultTitle; | |
public String resultContent; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import webGrude.annotations.Page; | |
import webGrude.annotations.Selector; | |
public class PrintExampleSearchResults { | |
@Page("http://www.example.com/{0}") | |
public static class SearchResultPage { | |
@Selector("h1") public String header; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SearchResultPage { | |
public String header;//this field will contain the page header | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<h1>Search results for searchTerm:</h1> | |
<div class="result"> | |
<span class="result-title">First result</span> | |
<span class="result-content">First result content</span> | |
</div> | |
<div class="result"> | |
<span class="result-title">Second result</span> | |
<span class="result-content">Second result content</span> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "#################################Temperature" | |
sensors | |
echo "#################################Space available" | |
df -h | |
echo "#################################Processes" | |
ps aux | |
echo "#################################Processes system usage" | |
top -b -n 1 | |
echo "#################################List open files" | |
lsof -i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var indexes = {date:0,description:3,valueSign:6,value:5,balance:7}; | |
var sums = new Array(); | |
function allMonthsSummed(){ | |
console.log("allMonthsSummed"); | |
var divMenuAno = document.getElementById('TRNnoprint03'); | |
var values = document.createElement("textarea"); | |
values.style.width = "100%"; | |
values.style.height = "25em"; | |
for(var i in sums) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if pidof compiz; then | |
metacity --replace& | |
else | |
compiz --replace& | |
fi |