Skip to content

Instantly share code, notes, and snippets.

@athlonUA
athlonUA / script.js
Last active April 29, 2019 08:34
Google reCAPTCHA V2. Change language in real time
// Enum for language codes
var languageListsGoogleCaptchaEnum = {
Arabic: 'ar',
Afrikaans: 'af',
Amharic: 'am',
Armenian: 'hy',
Azerbaijani: 'az',
Basque: 'eu',
Bengali: 'bn',
Bulgarian: 'bg',
@ahsankhatri
ahsankhatri / README.md
Last active February 10, 2022 18:29
Database Driven Routes Laravel 5.2

Database Driven Routes Laravel 5.2

Table: url_alias

+----+-----------------+-------------------------------------------+-----------------+-----------+------------+
| id | slug            | map_to                                    | params          | http_verb | middleware |
+----+-----------------+-------------------------------------------+-----------------+-----------+------------+
| 1  | page/about-us   | Frontend\HomeController@showPage          | a:1:{i:0;i:4;}  | GET       | web        |
| 2  | page/contact-us | Backend\DashboardController@getContactUs  | a:1:{i:0;i:4;}  | GET       | web        |

| 3 | page/contact-us | Backend\DashboardController@postContactUs | | POST | web |

@obenjiro
obenjiro / vertical-text.css
Last active April 4, 2020 20:23
CrossBrowser Vertical CSS Text
/**
* Works everywere ( IE7+, FF, Chrome, Safari, Opera )
* Example: http://jsbin.com/afAQAWA/2/
*/
.rotated-text {
display: inline-block;
overflow: hidden;
width: 1.5em;
}
.rotated-text__inner {
@cdukes
cdukes / starter-wp-config.php
Last active March 28, 2018 02:24
Boilerplate wp-config.php for WordPress
<?php
/**
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the