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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title></title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body { | |
background-color: darkgrey; |
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/bash | |
# Get postman app | |
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz | |
sudo tar -xzf postman.tar.gz -C /opt | |
sudo ln -s /opt/Postman/Postman /usr/bin/postman | |
#Create a Desktop Entry | |
cat > ~/.local/share/applications/postman.desktop <<EOL | |
[Desktop Entry] | |
Encoding=UTF-8 |
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 | |
define('i18n', dirname(__DIR__) . '/locales/'); | |
function __($phrase) { | |
$locale = $GLOBALS['APPLANG']; | |
static $trans = NULL; | |
$ext = '.json'; | |
if (is_null($trans)) { | |
$lang_file = i18n . $locale . $ext; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<meta name="author" content=""> | |
<meta name="description" content=""> | |
<script src="https://npmcdn.com/vue/dist/vue.js"></script> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.0.0/css/foundation.min.css" /> | |
</head> | |
<body> |
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
<script src="./node_modules/jquery/dist/jquery.min.js"></script> | |
<input id="i18n-switch" type="checkbox" data-toggle="toggle" data-on="EN" data-off="TR"> | |
<script type="text/javascript"> | |
const getRoot = function () { | |
return window.document.location.origin.toString() | |
} | |
const CONF = { | |
prefix: '?locale=', | |
lang: ['en', 'tr'], |
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
/* Author: cagcak | |
* Requirement: jQuery >= 1.x | |
* Usage : place html partial, call as partialBoneCaller(int level) in main html with | |
* data-include='./partials/nav.html' | |
*/ | |
function partialBoneCaller (level) { | |
'use strict' | |
var includes = $('[data-include]') | |
var x = '../' | |
jQuery.each(includes, function () { |
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/bash | |
# Simple user-interaction based login script | |
username="root" | |
password="toor" | |
#set -x #tracing code line on | |
echo "You have 10 sec to type" |
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
var fs = require("fs"); | |
var input = process.argv.slice(2).toString(); | |
// USAGE: | |
// node 'script' 'target' | |
// (ex: node A-json-formatter.js a:\source\nodejs\formed.json) | |
fs.open(input, 'r', (err, fd) => { | |
if (err) { | |
if (err.code === 'ENOENT') { |
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
// USAGE ------ | |
// ============ | |
var shell = require('./shellHelper'); | |
// execute a single shell command | |
shell.exec('npm test --coverage', function(err){ | |
console.log('executed test'); | |
}}); |
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
Wrlcome Project |
NewerOlder