Skip to content

Instantly share code, notes, and snippets.

View cossssmin's full-sized avatar
💭

Cosmin Popovici cossssmin

💭
View GitHub Profile
@cossssmin
cossssmin / 2019-https-localhost.md
Created February 11, 2021 18:48 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

<template>
<ins class="adsbygoogle"
:data-ad-client="adClient"
:data-ad-slot="adSlot"
:data-ad-format="adFormat"
:style="adStyle"></ins>
</template>
<script>
export default {
@cossssmin
cossssmin / tailwind-rtl.js
Created October 4, 2018 15:49 — forked from patrikengborg/tailwind-rtl.js
Function for Tailwind to add a custom variant plugin for RTL sites.
function ({ addVariant }) {
addVariant('rtl', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `[dir="rtl"] .rtl${separator}${className}`
})
})
}
<?php
namespace App\Listeners;
use TightenCo\Jigsaw\Jigsaw;
use App\PseudoCollectionGenerator;
use Illuminate\Support\Collection;
class AddArchivePages extends PseudoCollectionGenerator
{
@cossssmin
cossssmin / prefixed-office-properties.md
Created June 4, 2018 17:12 — forked from p3t3r67x0/prefixed-office-properties.md
MS Office prefixed style properties can be used for older versions of MS Excel, MS PowerPoint or MS Word when you want to save a document, presentation, workbook, or worksheet as a web document, or even in older versions for MS Outlook.

MS Office prefixed style properties

mso-ansi-font-size

Note: Office only

mso-ansi-font-size: large | larger | <length> | medium | <percentage> | small | smaller | x-large | x-small | xx-large | xx-small
@cossssmin
cossssmin / JavaScript-Tabs.html
Last active May 17, 2018 16:24 — forked from Jiert/JavaScript-Tabs.js
Creating Tabs with Vanilla JavaScript
<!DOCTYPE html>
<html lang="en">
<head>
<title>Tabs</title>
<style>
.tabs .active a { color: red; }
.tab-pane:not([aria-expanded="true"]) {display: none;}
</style>
</head>
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Updated: 2010/12/05
// License: MIT
//
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it)
//
// Permission is hereby granted, free of charge, to any person
@cossssmin
cossssmin / laravel4-on-shared-hosting
Last active August 23, 2016 18:34 — forked from williwambu/laravel4-on-shared-hosting
Guide to configuring laravel on shared hosting
Laravel can can hosted in shared hosting environments. One can upload all files into puplic_html(www) folder.This comes with some problems:
- Exposes your code to the public
- To view the site you have to use http://your_domain/public or use url rewriting
To avoid this you have to separate the public folder from the other laravel files.
This is how i do it:
1. Create a folder above public_html or www in some environments. Call it laravel
2. Upload all the files in your laravel application to this folder except public folder
3. Upload the contents of public folder to public_html or www