Skip to content

Instantly share code, notes, and snippets.

View deostroll's full-sized avatar
😄
indeed...!

arun.jayapal deostroll

😄
indeed...!
View GitHub Profile
@deostroll
deostroll / dictionary.txt
Created May 8, 2017 05:43
scrabble word list
This file has been truncated, but you can view the full file.
AA
AAH
AAHED
AAHING
AAHS
AAL
AALII
AALIIS
AALS
AARDVARK
@deostroll
deostroll / .gitignore
Last active April 27, 2017 18:56
a graph problem
node_modules
@deostroll
deostroll / Inject VelocityJS
Last active April 12, 2017 15:54 — forked from painteddigital/Inject VelocityJS
Paste this into your console to play with velocity on a page that doesn't have it. It assumes jQuery exists already
(function() {
var url = ['cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.js'];
for(var i=0; i < url.length; i++){
var v = document.createElement('script'); v.type = 'text/javascript'; v.async = true;
v.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + url[i];
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(v, s);
}
})();
@deostroll
deostroll / program.cs
Created December 7, 2016 20:03
wcf console hoster
// add reference to system.dll system.servicemodel.dll during compilation
using System;
using System.ServiceModel;
using System.ServiceModel.Description;
using System.Collections.Generic;
namespace WcfConsoleApp
{
[ServiceContract]
@deostroll
deostroll / script.txt
Created October 19, 2016 16:18
blogger mathjax script
<script type="text/javascript">!function(){if(!("MathJax"in window||document.getElementById("mathjax"))){var a=document.createElement("script");a.id="mathjax",a.src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML",a.onload=function(){MathJax.Hub.Config({tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]]}})},document.body.appendChild(a)}}();</script>
@deostroll
deostroll / Readme.md
Last active September 6, 2016 03:27
ng-frame

This is the gist file for ng-frame

import math
import sys
class HarmonicGenerator(object):
"""docstring for HarmonicGenerator"""
def __init__(self):
super(HarmonicGenerator, self).__init__()
self.n = 0
def __next__(self):
@deostroll
deostroll / main.py
Created July 9, 2016 06:03
python - stupid browser
import socket
import sys
from urlparse import urlparse
def main(url):
parsed = urlparse(url)
loc = parsed.netloc
idx = loc.find(':')
if idx > 0 :
domain = loc[:idx]
@deostroll
deostroll / Program.cs
Created July 5, 2016 11:32
oracle odp.net sample
using Oracle.ManagedDataAccess.Client;
using System;
namespace caODP.net
{
class Program
{
static void Main(string[] args)
{
OracleConnection cxn = new OracleConnection();
@deostroll
deostroll / server.js
Created June 27, 2016 07:52
tcp server code
var net = require('net');
var host = '0.0.0.0';
var port = 8000;
var readline = require('readline');
var os = require('os')
var EOL = os.EOL;
var cxn = net.createServer(function(sock) {
sock.write('Ready for commands' + EOL);