sudo apt-get install openjdk-8-jdk
javac XMLSec2PEM.java
Error: ENOSPC: System limit for number of file watchers reached
/etc/sysctl.conf
برای تعیین حداکثر تعداد واچهای انپیام
// https://stackoverflow.com/questions/28595664/how-to-stop-json-marshal-from-escaping-and#answer-51578927 | |
func _UnescapeUnicodeCharactersInJSON(_jsonRaw json.RawMessage) (json.RawMessage, error) { | |
str, err := strconv.Unquote(strings.Replace(strconv.Quote(string(_jsonRaw)), `\\u`, `\u`, -1)) | |
if err != nil { | |
return nil, err | |
} | |
return []byte(str), nil | |
} |
/* ------- worker file ---------- | |
./worker/myworkercode.js | |
*/ | |
const workercode = () => { | |
self.onmessage = function(e) { | |
// Do anything you want with e.data | |
let l = e.data * 5; | |
<?php | |
error_reporting(E_ALL); | |
ini_set("display_errors", 1); | |
//$ch = curl_init($_GET['url']); | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_HEADER, 0); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); | |
curl_setopt($ch, CURLOPT_VERBOSE, TRUE); |
sudo npm i gulp-sass -ES --unsafe-perm=true |
<!DOCTYPE html> | |
<html lang="en-US"> | |
<head> | |
<title>Comma Seperated input text numbers</title> | |
</head> | |
<body> | |
<br> | |
<input class="number"> |
function setCookie(cname,cvalue) { | |
// function setCookie(cname,cvalue,exdays) { | |
var d = new Date(), | |
exdays = 7; | |
d.setTime(d.getTime() + (exdays*24*60*60*1000)); | |
var expires = "expires=" + d.toGMTString(); | |
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; | |
} | |
function getCookie(cname) { |