Skip to content

Instantly share code, notes, and snippets.


Ashok Bakthavathsalam kgashok

Block or report user

Report or block kgashok

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
kgashok /
Last active Aug 29, 2015
both checked and unchecked

###ToDo list

  • Do it

  • Test it

  • Fix it

  • Done this well

  • Nice work!

kgashok / letter.rb
Last active Aug 29, 2015
A love letter
View letter.rb
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, do; end }
OurFamily = :the_number_one_most_important_thing # not breakfast
def a_letter(*to); yield Augusta; end
View tryjsil.cs
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 / index.html
Last active Apr 17, 2016
View index.html
<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">
<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=""></a></em></p>
<img id = "idea" class="img-responsive center-block" src="">
View simple2.c
// edited on Sublime and posting it back
int main ()
return 0;
kgashok / first.elm
Last active Apr 29, 2016
First Elm program from Sublime
View first.elm
import Html exposing (..)
main =
text "Hello, World!"
kgashok / Sample.elm
Created Apr 30, 2016 — forked from rundis/Sample.elm
Reversing a string using a stack
View Sample.elm
module Sample where
import Stack exposing (..)
import String
import Html exposing (..)
reverseString : String -> String
reverseString str =
String.split "" str
|> Stack.fromList
kgashok / Sample.elm
Last active Apr 30, 2016
Modification of Rundberget's version at ( to use String as a stack
View Sample.elm
import SStack as Stack exposing (..)
import Html exposing (..)
reverseString : String -> String
reverseString str =
Stack.reverse str
main : Html.Html
main =
kgashok / Validator.elm
Created May 1, 2016
Code for Bracket Validator in Elm
View Validator.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 / bracketInteract.elm
Last active May 4, 2016
Interactive bracket validator using Elm
View bracketInteract.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)
You can’t perform that action at this time.