Skip to content

Instantly share code, notes, and snippets.

View kgashok's full-sized avatar
🎯
Focusing

Ashok Bakthavathsalam kgashok

🎯
Focusing
View GitHub Profile
@kgashok
kgashok / todo.md
Last active August 29, 2015 14:03
both checked and unchecked

###ToDo list

  • Do it

  • Test it

  • Fix it

  • Done this well

  • Nice work!

@kgashok
kgashok / letter.rb
Last active August 29, 2015 14:06
A love letter
Augusta = Awesome = true and Loved = Cherished = true
Infinity = (+1.0 / 0)..(-1.0 / 0)
def Infinity.ends; false; end
Forever = -> { puts "Augusta, we \033[31m<3\033[0m you!"; sleep 5 }
Incredible = :wunderbar!
%w(We The).map { |const| self.class.const_set const, Module.new do; end }
OurFamily = :the_number_one_most_important_thing # not breakfast
def a_letter(*to); yield Augusta; end
// edited on Sublime and posting it back
int main ()
{
return 0;
}
@kgashok
kgashok / tryjsil.cs
Created December 19, 2015 03:02
JsilSample
using System;
using JSIL;
using JSIL.Meta;
public static class Program {
public static int x = 10;
public static int y = 20;
public static void Main () {
dynamic document = Builtins.Global["document"];
@kgashok
kgashok / index.html
Last active April 17, 2016 12:43
tributeBlog
<div class="container-fluid">
<div class="row">
<div class="col-xs-12">
<h1 class="text-primary text-center"><a id="Questions_2"></a> Power of Questions</h1></div>
<div class="col-xs-12">
<p>
<h4 class="text-center">"I, for one, want to be pulled and stretched and tested. I want the discomfort of not knowing, because it’s in those tiny unknowing spaces that I feel the most alive (and connected with discovery). It’s in those moments I have the best conversations—with people from all belief systems." <a href="http://j.mp/qTransform"> http://j.mp/qTransform</a></em></p>
</div>
</div>
<img id = "idea" class="img-responsive center-block" src="http://launchany.com/wp-content/uploads/2016/01/idea.jpg">
@kgashok
kgashok / first.elm
Last active April 29, 2016 20:32
First Elm program from Sublime
-- https://packagecontrol.io/packages/sublime-github
import Html exposing (..)
main =
text "Hello, World!"
@kgashok
kgashok / Sample.elm
Created April 30, 2016 17:30 — forked from rundis/Sample.elm
Reversing a string using a stack
module Sample where
import Stack exposing (..)
import String
import Html exposing (..)
reverseString : String -> String
reverseString str =
String.split "" str
|> Stack.fromList
@kgashok
kgashok / Sample.elm
Last active April 30, 2016 23:47
Modification of Rundberget's version at (https://gist.github.com/rundis/8b5a0fd09c3eb348dfc2aa7e862436b4) to use String as a stack
import SStack as Stack exposing (..)
import Html exposing (..)
reverseString : String -> String
reverseString str =
Stack.reverse str
main : Html.Html
main =
@kgashok
kgashok / Validator.elm
Created May 1, 2016 10:47
Code for Bracket Validator in Elm
module Validator where
-- import Html exposing (..)
import Text exposing (..)
import Graphics.Element exposing (..)
import Color exposing (..)
import SStack as Stack exposing (..)
reverseString : String -> String
@kgashok
kgashok / bracketInteract.elm
Last active May 4, 2016 19:51
Interactive bracket validator using Elm
module Bracket where
import Html exposing (..)
import Html.Events exposing (on, targetValue)
import Html.Attributes exposing (..)
import Signal exposing (Address)
import StartApp.Simple as StartApp
import String exposing (..)
import Dict exposing (..)
import List.Extra as Listx exposing (find)