- Text Content Generator - http://www.lipsum.com
- Favicon Generator - http://tools.dynamicdrive.com/favicon
- Data Generator - https://mockaroo.com/
- Mobile Mockup Generator - https://mockuphone.com
- Logo Generator - https://www.logaster.com
- UUID Generator - https://www.uuidgenerator.net/
- Hash Generator - https://passwordsgenerator.net/sha256-hash-generator/
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 client body size to 20M # | |
client_max_body_size 20M; | |
server Block : | |
location / { | |
proxy_pass http://167.99.154.190:8080; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; |
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 | |
/** | |
this is a simple method , which will return soundex of transliterated arabic string | |
*/ | |
function arSoundex($string) | |
{ | |
// remove any pounctions and any space etc .. | |
$string = preg_replace("/\\p{P}|\\p{M}/u", "" , $string); | |
$chars = array( | |
"ا"=>"أإاآ" , |
The git command-line utility has plenty of inconsistencies http://steveko.wordpress.com/2012/02/24/10-things-i-hate-about-git/
A GUI like http://sourcetreeapp.com is often helpful, but staying on the command line usually quicker. This is a list of the commands I use most frequently, listed by funcional category:
git status
list which (unstaged) files have changed
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
const fs = require('fs'); | |
const readline = require('readline'); | |
const { google } = require('googleapis'); | |
//Drive API, v3 | |
//https://www.googleapis.com/auth/drive See, edit, create, and delete all of your Google Drive files | |
//https://www.googleapis.com/auth/drive.file View and manage Google Drive files and folders that you have opened or created with this app | |
//https://www.googleapis.com/auth/drive.metadata.readonly View metadata for files in your Google Drive | |
//https://www.googleapis.com/auth/drive.photos.readonly View the photos, videos and albums in your Google Photos | |
//https://www.googleapis.com/auth/drive.readonly See and download all your Google Drive files | |
// If modifying these scopes, delete token.json. |
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 highlight = require('highlight.js') | |
var cheerio = require('cheerio') | |
var strip = ['/', '#', ' ', '*', "<", ">", '-', '\\'] | |
function getComments (str) { | |
var html = highlight.highlightAuto(str).value | |
var $ = cheerio.load(html) | |
var lines = $('span.hljs-comment').map(function(i, el) {return $(this).text();}).get() | |
return lines.map(function (l) { |
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
import { MeshWriter } from "meshwriter"; | |
const canvas = document.getElementById("renderCanvas"); // Get the canvas element | |
const engine = new BABYLON.Engine(canvas, true); // Generate the BABYLON 3D engine | |
const createScene = function () { | |
const scene = new BABYLON.Scene(engine); | |
const camera = new BABYLON.ArcRotateCamera("Camera", -Math.PI / 2, Math.PI / 4, 50, BABYLON.Vector3.Zero(), scene); | |
const light = new BABYLON.HemisphericLight("light1", new BABYLON.Vector3(0, 10, 0), scene); |