Skip to content

Instantly share code, notes, and snippets.

View digital-flowers's full-sized avatar

Fareed Alnamrouti digital-flowers

View GitHub Profile
@digital-flowers
digital-flowers / redis limit
Last active May 25, 2018 06:49 — forked from kapkaev/gist:4619127
MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error. Resque
$ redis-cli
> config set stop-writes-on-bgsave-error no
/**
* @param args the command line arguments
*/
public void createXmlFile(Document doc, String name, String Service, String Input, String Output
, String[] atr) throws Exception {
Element root = doc.createElement("composant");
doc.appendChild(root);
Element element1 = doc.createElement("Nom_de_composant");
root.appendChild(element1);
Text text1 = doc.createTextNode(name);
@digital-flowers
digital-flowers / xml.java
Last active May 9, 2018 05:58
create xml java example
public void createXmlFile(Document doc, String name, String Service, String Interface, String Input1, String Input2, String Input3, String Output, String[] atr) throws Exception {
Element root = doc.createElement("composant");
doc.appendChild(root);
Element element1 = doc.createElement("Nom_de_composant");
root.appendChild(element1);
Text text1 = doc.createTextNode(name);
element1.appendChild(text1);
/*
Element element2 = doc.createElement("Keyword");
root.appendChild(element2);
if (!window.localStorage) {
window.localStorage = {
getItem: function (sKey) {
if (!sKey || !this.hasOwnProperty(sKey)) { return null; }
return unescape(document.cookie.replace(new RegExp("(?:^|.*;\\s*)" + escape(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*"), "$1"));
},
key: function (nKeyId) {
return unescape(document.cookie.replace(/\s*\=(?:.(?!;))*$/, "").split(/\s*\=(?:[^;](?!;))*[^;]?;\s*/)[nKeyId]);
},
setItem: function (sKey, sValue) {