This file contains 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/bash | |
panelList=$(gconftool-2 --all-dirs "/apps/panel/toplevels") | |
for panel in $panelList | |
do | |
state=$(gconftool-2 --get "$panel/auto_hide") | |
if [ $state = "true" ]; then | |
gconftool-2 --set "$panel/unhide_delay" --type integer "0" | |
gconftool-2 --set "$panel/auto_hide" --type bool "false" |
This file contains 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 |
This file contains 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 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 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 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 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 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 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 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") |
OlderNewer