Skip to content

Instantly share code, notes, and snippets.

View nshCore's full-sized avatar
:octocat:

0x1A4 nshCore

:octocat:
  • please enable GPS
View GitHub Profile
const fs = require('fs');
function permutePhoneNumber(phoneNumber) {
const digits = '0123456789';
phoneNumber = phoneNumber.replace(/\*/g, '{}');
const permutations = [];
for (let i = 0; i <= 9; i++) {
for (let j = 0; j <= 9; j++) {
permutations.push(phoneNumber.replace(/\{}/g, i).replace(/\{}/g, j));
}
/**
*Submitted for verification at BscScan.com on 2021-05-26
*/
/**
*/
/**
#BEE
<script>
export default {
props: {
show: {
type: Boolean,
required: true,
twoWay: true
}
@nshCore
nshCore / schema-org-structured-data-markup-using-microdata.html
Created March 2, 2017 09:21 — forked from milanaryal/schema-org-structured-data-markup-using-microdata.html
An example of how to mark up a HTML5 webpage using the schema.org schemas and microdata.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Site Title</title>
<link rel="stylesheet" href="/assets/css/style.min.css">
@nshCore
nshCore / .htaccess
Created December 20, 2016 09:01
.htaccess to remove .html and .php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/$ $1.php
RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.php
RewriteRule ^([^/]+)/$ $1.html
RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.html
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule (.*)$ /$1/ [R=301,L]
@nshCore
nshCore / ajax.js
Last active October 21, 2016 00:40
import helpers from './helpers.js';
/**
* Ajax directive to easily submit vue forms via ajax
*
* @author James Kirkby <jkirkby91@gmail.com>
*/
export default {
params: ['complete'],
import App from './components/App.vue';
// Router
Vue.router = new VueRouter({
hashbang: false,
history: true,
linkActiveClass: 'active',
mode: 'html5'
});
{
"name": "@websanova/vue-auth",
"description": "Vue.js token based authentication plugin. Supports simple token based and Json Web Tokens (JWT) authentication.",
"keywords": ["vue", "vue.js", "jwt", "auth", "authentication", "plugin", "json", "web", "token"],
"author": {
"name": "Websanova",
"url": "http://websanova.com",

Location FieldSet

<fieldset id="LocationDetails">
  <legend>Business Location Details</legend>
  <input type="text" id="LongitudeInput" hidden>
  <input type="text" id="LatitudeInput" hidden>
 </fieldset>
<!doctype html>
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="">
<![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8" lang="">
<![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9" lang="">
<![endif]-->