Skip to content

Instantly share code, notes, and snippets.

View sonus's full-sized avatar
☸️
Focusing

Sonus Sundar sonus

☸️
Focusing
View GitHub Profile
@sonus
sonus / index.html
Created August 9, 2016 11:17
vue.js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<div id="app">
<h1 v-text="title"></h1>
<input type="" v-model="title" name="">
@sonus
sonus / RestControllerTrait.php
Created August 19, 2016 11:13 — forked from beanmoss/RestControllerTrait.php
Playing with Laravel Lumen: simple RESTful trait.
<?php namespace App\Http\Controllers;
use Illuminate\Http\Request;
trait RestControllerTrait
{
public function index()
{
$m = self::MODEL;
return $this->listResponse($m::all());
@sonus
sonus / main.js
Last active October 10, 2017 13:07
(function(){
console.log('I am here');
});
@sonus
sonus / config.json
Created November 16, 2017 04:41
iterm2
{
"Ansi 7 Color" : {
"Green Component" : 0.7333333492279053,
"Red Component" : 0.7333333492279053,
"Blue Component" : 0.7333333492279053
},
"Tags" : [
],
"Ansi 12 Color" : {
@sonus
sonus / easter_cart.html
Last active March 27, 2018 11:57
Easter
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style media="screen">
div.automaton{
height: 800px;
http://charts3.equitystory/teaser/pumanew/English
@sonus
sonus / git-cheat-sheet.md
Created July 13, 2018 06:28
Git Cheat Sheet

To set your identity:

git config --global user.name "John Doe"

git config --global user.email johndoe@example.com

To set your editor:

git config --global core.editor emacs

@sonus
sonus / rickandmorty.js
Created November 20, 2019 03:35
rickandmorty.402.js
var r_text = new Array ();
r_text[0] = "Nobody exists on purpose, nobody belongs anywhere, everybody's gonna die. Come watch TV.";
r_text[1] = "Wubba lubba dub dub!";
r_text[2] = "To live is to risk it all, otherwise you're just an inert chunk of randomly assembled molecules drifting wherever the universe blows you.";
r_text[3] = "Well, all is forgiven, because right now, I’ve got an erection the size of an East Coast lighthouse, and I’m coming home to share it with my beautiful wife.";
r_text[4] = "All I have are pictures are of me and my friends from school. What? What teenage girl has pictures of her family? It's not like we're Mormon or dying";
r_text[5] = "Get off the high road, Summer! We all got pinkeye because you won't stop texting on the toilet.";
r_text[6] = "No, no, I haven't seen that. I mean, why would a Pop-Tart want to live inside a toaster, Rick? I mean, th-that would be like the scariest place for them to live. Y'know what I mean?";
r_text[7] = "And this is why you don't invite a Floopy Doop