Skip to content

Instantly share code, notes, and snippets.

View kevsmt's full-sized avatar

Kevs(mt) kevsmt

View GitHub Profile
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Windows.Input;
using System.Windows.Threading;
using System.Collections.Generic;
namespace Ownskit.Utils
{
@kevsmt
kevsmt / esc.php
Last active December 24, 2015 16:19
Raw Printing HEX ESC static class
<?php
class ESC {
const LF = "\x0a";
const FF = "\x0c";
const CR = "\x0d";
const HT = "\x09";
const VT = "\x0b";
const ESC = "\x1b";
# Initial setup
git clone -o framework -b develop https://github.com/laravel/laravel.git project-name
cd project-name
git checkout --orphan master
git commit -m "Initial commit"
# Pulling changes
git fetch framework
git merge --squash -m "Upgrade Laravel" framework/develop
# Fix merge conflicts if any and commit
@kevsmt
kevsmt / gist:2527164
Created April 29, 2012 02:59
SQLitedb.js
/*************************************/
/* Helman, heldes.com */
/* helman at heldes dot com */
/* sqlitedb.js */
/* SQLite Database Class For HTML5 */
/*************************************/
/* Stratified */
exports.createDB = function (confs) {
@kevsmt
kevsmt / common.js
Created March 22, 2012 09:28
Bootstrap Modal
// Common
// @singleton
var Common = {};
Common.createModal = function(config) {
var id = "bs-modal-div";
// prevent re-show?
/*
* The majority of this code is based on the Ext JS Connect JsonRpc provider.
* That code's license appears below. My changes are likewise MIT Licensed
*/
/*!
* Ext JS Connect
* Copyright(c) 2010 Ext JS, Inc.
* MIT Licensed
*/