Skip to content

Instantly share code, notes, and snippets.

View iamkarsoft's full-sized avatar
🏘️
Working from Home | Experimenting | Learning

Kofi Ramos iamkarsoft

🏘️
Working from Home | Experimenting | Learning
View GitHub Profile
@iamkarsoft
iamkarsoft / README.md
Created August 10, 2016 14:59 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@iamkarsoft
iamkarsoft / ajax-form.js
Created February 17, 2017 08:08 — forked from havvg/ajax-form.js
jQuery AJAX form submit with Twitter Bootstrap modal
jQuery(function($) {
$('form[data-async]').live('submit', function(event) {
var $form = $(this);
var $target = $($form.attr('data-target'));
$.ajax({
type: $form.attr('method'),
url: $form.attr('action'),
data: $form.serialize(),
@iamkarsoft
iamkarsoft / Contract Killer 3.md
Created May 6, 2019 20:07
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@iamkarsoft
iamkarsoft / deployment_guide.md
Created August 13, 2019 17:04 — forked from vicgonvt/deployment_guide.md
Deployment Guide for Ubuntu Server from Scratch with Laravel
@iamkarsoft
iamkarsoft / UuidModel.php
Created August 25, 2019 12:37 — forked from hopeseekr/UuidModel.php
A drop-dead simple UUID base model class for Laravel 5
<?php
namespace App\Models;
use Ramsey\Uuid\Uuid;
/**
* App\Models\UuidModel.
*
* @mixin \Eloquent
@iamkarsoft
iamkarsoft / node_nginx_ssl.md
Created September 23, 2019 18:54 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to Digital Ocean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

<div class="quote big" style="background-image: url('<?php echo wp_get_attachment_url( get_post_thumbnail_id( $post->ID ) ); ?>');">
</div>
@iamkarsoft
iamkarsoft / Javascript ISO Country Lists for Select2 Plugin
Created May 23, 2020 14:33 — forked from starx/Javascript ISO Country Lists for Select2 Plugin
ISO 3166-1 alpha-2 country code to country name conversion with a implementation for Select2 plugin [Demo 1: http://jsfiddle.net/Starx/sgb4888k/1/, Demo 2 (With flags): http://jsfiddle.net/Starx/sgb4888k/2/]]
(function($) {
$(function() {
var isoCountries = [
{ id: 'AF', text: 'Afghanistan'},
{ id: 'AX', text: 'Aland Islands'},
{ id: 'AL', text: 'Albania'},
{ id: 'DZ', text: 'Algeria'},
{ id: 'AS', text: 'American Samoa'},
{ id: 'AD', text: 'Andorra'},
{ id: 'AO', text: 'Angola'},
@iamkarsoft
iamkarsoft / media-query.css
Created September 23, 2020 18:18 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS