Skip to content

Instantly share code, notes, and snippets.

View abishekrsrikaanth's full-sized avatar
🏠
Working from home

Abishek R Srikaanth abishekrsrikaanth

🏠
Working from home
View GitHub Profile
<?php
class Request
{
private $is_last_session_id;
public function send($s_url, $data)
{
$params = [
import Vue from 'vue';
import Auth from '../mixins/user-auth';
import makeUserStore from '../store/user';
new Vue({
mixins: [Auth],
el: '.auth-wrapper',
store: makeUserStore(),
async mounted() {
let user = await this.__getUser();
@abishekrsrikaanth
abishekrsrikaanth / gist:a147952dfe93812fbf79a6ab0b215815
Created April 19, 2016 18:07 — forked from almays/gist:3928668
Unix conf: Sendy nginx rewrite rules
index index.php index.html;
root /your/path/to/the/sendy;
location = / {
index index.php;
}
location / {
if (!-f $request_filename){
rewrite ^/([a-zA-Z0-9-]+)$ /$1.php last;

Installation

Installing Supervisor on OS X is simple:

sudo pip install supervisor

This assumes you have pip. If you don't:

@abishekrsrikaanth
abishekrsrikaanth / setup-dev.sh
Created October 13, 2015 23:52
Install homebrew, nginx, mysql, php55, and composer on Mac OS X
#!/bin/bash
# install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# install homebrew's official php tap
brew tap josegonzalez/homebrew-php
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[
{
"id": "1",
"name": "Short Sleeves",
"created_at": "2014-05-28 19:03:55",
"updated_at": "2014-05-28 19:04:45",
"category_products": [
{
"id": "3",
"category": "1",
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",

[2015-02-13 22:50:01] staging.ERROR: Error 500 on GET http://dev.viralstyle.com/client/campaigns/datatable/upsell: exception 'ErrorException' with message 'Trying to get property of non-object' in /var/www/viral-tees/htdocs/app/library/Datatables/Client/ColumnHelpers/UpsellColumnHelperTrait.php:16 Stack trace: #0 /var/www/viral-tees/htdocs/app/library/Datatables/Client/ColumnHelpers/UpsellColumnHelperTrait.php(16): Illuminate\Exception\Handler->handleError(8, 'Trying to get p...', '/var/www/viral-...', 16, Array) #1 /var/www/viral-tees/htdocs/app/library/Datatables/Client/Upsells/UpsellDatatable.php(33): ViralTees\Library\Datatables\Client\Upsells\UpsellDatatable->getShirtColumn(Object(Campaign)) #2 /var/www/viral-tees/htdocs/app/library/Datatables/AbstractDatatable.php(235): ViralTees\Library\Datatables\Client\Upsells\UpsellDatatable->ViralTees\Library\Datatables\Client\Upsells{closure}(Object(Campaign)) #3 /var/www/viral-tees/htdocs/app/library/Datatables/AbstractDatatable.php(264): ViralTees\Library\Data

@abishekrsrikaanth
abishekrsrikaanth / css_resources.md
Last active August 29, 2015 14:12 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides