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 java.awt.event.*; | |
import java.awt.Robot; | |
import java.util.concurrent.TimeUnit; | |
public class clicker { | |
public static void main(String[] args) throws Exception { | |
// Display usage | |
System.out.println("Usage:"); |
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 | |
# Configure this section according to your system settings | |
squidGuardpath="/usr/bin/squidGuard" | |
squidpath="/usr/sbin/squid3" | |
httpget="/usr/bin/wget" | |
tarpath="/bin/tar" | |
chownpath="/bin/chown" | |
dbhome="/var/lib/squidguard/db" # same as squidguard.conf |
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 static double mean(List<Integer> nums) { | |
if (nums == null || nums.size() == 0) { | |
return 0.0; | |
} | |
double sum = 0.0; | |
for (Integer n : nums) { | |
sum += n; | |
} | |
return sum / nums.size(); | |
} |
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 static double mean(List<Integer> nums) { | |
if (nums == null || nums.size() == 0) { | |
return 0.0; | |
} | |
double sum = 0.0; | |
for (int i = 0; i < nums.size(); i++) { | |
sum += nums.get(i); | |
} | |
return sum / nums.size(); | |
} |
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 static double mean(List<Integer> nums) { | |
int sum = 0; | |
for (int i = 0; i < nums.size(); i++) { | |
sum += nums.get(i); | |
} | |
return (double) sum / nums.size(); | |
} |
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 static double mean(List<Integer> nums) { | |
if (nums == null || nums.size() == 0) { | |
return 0.0; | |
} | |
int sum = 0; | |
for (int i = 0; i < nums.size(); i++) { | |
sum += nums.get(i); | |
} | |
return (double) sum / nums.size(); | |
} |