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
<?php | |
require_once($_SERVER['DOCUMENT_ROOT'].'/include/base.php'); | |
// For each Business Object of the application (= $busobject) a global field | |
// variable is defined with contains meta information about each field | |
// which will be rendered in the content detail view as well as its form | |
// The file containing the definitions will be located in the frontend/coursetype | |
// directory | |
$busobject = "coursetype"; | |
// First index is the flow on the form | |
$fields = array ( |
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
<?php | |
require_once($_SERVER['DOCUMENT_ROOT'].'/../common/cb.Global.php'); | |
function generateInjectLocalizationScript($inForm) { | |
global $fields, $busobject; | |
echo "<script>"; | |
echo "$(document).ready(function() {"; | |
echo "var locfields = {"; | |
foreach ($fields as $key => $value) { | |
echo '"label_' . $value["name"] . '": "' . $busobject . "." . $value["name"] . '",'; |
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 com.cloudburo.test; | |
import java.io.FileReader; | |
import java.util.List; | |
import java.util.ArrayList; | |
import org.supercsv.cellprocessor.ift.CellProcessor; | |
import org.supercsv.io.CsvBeanReader; | |
import org.supercsv.io.ICsvBeanReader; | |
import org.supercsv.prefs.CsvPreference; |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
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
name;surname;address;plz;location;telephone;mobile;email;citizenship;birthdate | |
Küstahler;Felix;Zumikerstrasse;8700;Küsnacht;449123567;796249158;talfco@gmx.com;Swiss;27.05.1955 | |
Meierhans;Albert;Bergstrasse 5;8706;Meilen;449123056;796329108;test@ggaweb.ch;USA;22.08.1996 |
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
# Prerequisite there is a modelName.coffee class file in the corresponding folder | |
createObjectSample1 : (modelName) -> | |
new ( require "models/"+modelName)() | |
# This method only takes the className, supposing that require class loading took place | |
createObjectSample2: (strClass) -> | |
# Let's cache the Views | |
if window.cache[strClass] != undefined | |
log.debug("Approuter.newInstance: Reusing cached Instance "+strClass) | |
return window.cache[strClass] |
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
protected String cleanupHTML(String elem) { | |
Whitelist list = Whitelist.basicWithImages(); | |
list.addTags("div"); | |
list.addEnforcedAttribute("a", "rel", "nofollow"); | |
list.addAttributes(":all","style"); | |
String doc = Jsoup.clean(elem, list); | |
logger.debug("Jsoup.clean: "+doc); | |
Document xmlDoc = Jsoup.parse(doc); | |
return cleanupStyle(xmlDoc); | |
} |
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
Verifying that "felixk.id" is my Blockstack ID. https://onename.com/felixk |
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 net.cloudburo.football; | |
import org.apache.http.*; | |
import org.apache.http.client.methods.HttpGet; | |
import org.apache.http.impl.client.CloseableHttpClient; | |
import org.apache.http.impl.client.HttpClientBuilder; | |
import org.apache.http.util.EntityUtils; | |
/** | |
A simple Java REST GET example using the Apache HTTP library. |
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
Verifying my Blockstack ID is secured with the address 171XBsDtyUCNtSxdqzPaBKjLE1EgwK1sqW https://explorer.blockstack.org/address/171XBsDtyUCNtSxdqzPaBKjLE1EgwK1sqW |
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
set -e | |
KEYSTORE=$JAVA_HOME/jre/lib/security/cacerts | |
wget https://letsencrypt.org/certs/letsencryptauthorityx1.der | |
wget https://letsencrypt.org/certs/letsencryptauthorityx2.der | |
wget https://letsencrypt.org/certs/letsencryptauthorityx3.der | |
wget https://letsencrypt.org/certs/lets-encrypt-x1-cross-signed.der | |
wget https://letsencrypt.org/certs/lets-encrypt-x2-cross-signed.der | |
wget https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.der |
OlderNewer