Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block jrran90

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jrran90 /
Created Dec 12, 2019
Access MySQL thru terminal

/Applications/MAMP/Library/bin/mysql -u root -p. Default password is "root"

jrran90 / setUserAgent.js
Created Nov 28, 2019 — forked from thorsten/setUserAgent.js
Override user agent on all browsers
View setUserAgent.js
function setUserAgent(window, userAgent) {
// Works on Firefox, Chrome, Opera and IE9+
if (navigator.__defineGetter__) {
navigator.__defineGetter__('userAgent', function () {
return userAgent;
} else if (Object.defineProperty) {
Object.defineProperty(navigator, 'userAgent', {
get: function () {
return userAgent;

This will detect if it's using mobile or not

if (navigator.userAgent.match(/Android/i) 
  || navigator.userAgent.match(/webOS/i) 
  || navigator.userAgent.match(/iPhone/i)  
  || navigator.userAgent.match(/iPad/i)  
  || navigator.userAgent.match(/iPod/i) 
  || navigator.userAgent.match(/BlackBerry/i) 
  || navigator.userAgent.match(/Windows Phone/i)) { 
jrran90 /
Created Nov 27, 2019 — forked from kasparsd/
Using Git with Subversion Mirroring for WordPress Plugin Development
jrran90 /
Last active Nov 14, 2019
PrestaShop CheatSheet and resolved

When you're doing migration from a different server and domain make sure you change the value of the following tables:

jrran90 /
Last active Nov 14, 2019
MySQL Cheatsheet

MySQL CheatSheet

This can be viewed thru mysql help or if using linux, try man mysql

ego          (\G) Send command to mysql server, display result vertically.
jrran90 / media-query.css
Created May 14, 2019 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
View media-query.css
##Device = Desktops
##Screen = 1281px to higher resolution desktops
@media (min-width: 1281px) {
jrran90 / GetWeeksInMonth.js
Created Mar 22, 2019 — forked from markthiessen/GetWeeksInMonth.js
JavaScript - get weeks in a month as array of start and end days
View GetWeeksInMonth.js
//note: month is 0 based, just like Dates in js
function getWeeksInMonth(month, year){
var weeks=[],
firstDate=new Date(year, month, 1),
lastDate=new Date(year, month+1, 0),
numDays= lastDate.getDate();
var start=1;
var end=7-firstDate.getDay();
jrran90 / CountdownTimer.vue
Last active Jan 17, 2019
Create a countdown timer using VueJS 2
View CountdownTimer.vue
<div class="the-countdown">
{{ days | two_digits }}
jrran90 / Random-string
Created Jul 6, 2018 — forked from 6174/Random-string
Generate a random string in JavaScript In a short and fast way!
View Random-string
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
You can’t perform that action at this time.