Campaign Links are links to external sites and are displayed as images.
| Resource | Description |
|---|---|
| GET campaign_links | Returns a list of campaign links currently featured in the Global Navigation |
| <beans xmlns="http://www.springframework.org/schema/beans" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx" | |
| xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context" | |
| xsi:schemaLocation=" | |
| http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd | |
| http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd | |
| http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd | |
| http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd"> |
| import org.apache.commons.configuration.CombinedConfiguration; | |
| public class PropertyManager { | |
| private String YOUR_PROPERTY_FILE = "properties.xml"; | |
| private static CombinedConfiguration combinedConfiguration = | |
| CommonsConfigurationUtility | |
| .createConfiguration(YOUR_PROPERTY_FILE); | |
| private PropertyManager() { } |
| <configuration> | |
| <header> | |
| <result delimiterParsingDisabled="true" forceReloadCheck="true"> | |
| <nodeCombiner config-class="org.apache.commons.configuration.tree.OverrideCombiner"/> | |
| </result> | |
| </header> | |
| <override> | |
| <properties fileName="/usr/local/tomcat6/conf/application.override.properties"> | |
| <reloadingStrategy config-class="org.apache.commons.configuration.reloading.FileChangedReloadingStrategy"/> | |
| </properties> |
| module RedisHelper | |
| def is_redis_open? | |
| begin | |
| Timeout::timeout(1) do | |
| begin | |
| s = TCPSocket.new(REDIS_CONFIG['server_url'], 6379) | |
| s.close | |
| return true | |
| rescue Errno::ECONNREFUSED, Errno::EHOSTUNREACH | |
| return false |
Campaign Links are links to external sites and are displayed as images.
| Resource | Description |
|---|---|
| GET campaign_links | Returns a list of campaign links currently featured in the Global Navigation |
| let numbers = [9,29, 83, 19, 48, 65, 25, 30, 18, 1, 15, 84, 72, 63, 71] | |
| func splitToSublists(list: [Int]) -> ([Int], [Int]) { | |
| assert(list.count > 1, "List size must be greater than 1 before split") | |
| let midIndex = (list.count / 2) as Int | |
| if(list.count == 2) { | |
| var leftSublist = Array([list[0]]) | |
| var rightSublist = Array([list[1]]) | |
| return (leftSublist, rightSublist) |
To build a binary that will run on the Raspberry Pi, you need to have a Go cross compiler and enable it when building the executable.
To build the cross compiler for Linux/ARM (you only need to do this once):
cd /usr/local/go/src
sudo GOOS=linux GOARCH=arm ./make.bash --no-clean
Once you've done that, you can build a binary for Raspberry Pi: