Skip to content

Instantly share code, notes, and snippets.

View aadis's full-sized avatar

aaditya sood aadis

View GitHub Profile
@aadis
aadis / gist:3978313
Created October 30, 2012 04:33
Emacs head patch
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el
index 157b2dd..f3807b7 100644
--- a/lisp/term/ns-win.el
+++ b/lisp/term/ns-win.el
@@ -1263,6 +1263,11 @@ the operating system.")
(add-to-list 'window-system-initialization-alist '(ns . ns-initialize-window-system))
+(declare-function ns-toggle-fullscreen-internal "nsfns.m" ())
+(defun ns-toggle-fullscreen ()
@aadis
aadis / gist:3798333
Created September 28, 2012 06:53
greenlets inside normal python threads
#!/usr/bin/python
import threading
import time
from gevent.pool import Pool
import gevent
import logbook
@aadis
aadis / gist:3082631
Created July 10, 2012 10:49
emacs build failure
==> Cloning http://git.sv.gnu.org/r/emacs.git
Updating /Library/Caches/Homebrew/emacs--git
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file lisp/term/ns-win.el
Hunk #1 succeeded at 931 with fuzz 1 (offset -332 lines).
patching file src/nsfns.m
Hunk #1 succeeded at 2681 (offset 92 lines).
Hunk #2 succeeded at 2794 (offset 90 lines).
@aadis
aadis / gist:3072438
Created July 8, 2012 19:27
err bot output
INFO:Config check passed...
INFO:Registered command: config
INFO:Registered command: export_configs
INFO:Registered command: export_repos
INFO:Registered command: help
INFO:Registered command: history
INFO:Registered command: import_configs
INFO:Registered command: install
INFO:Registered command: load
@aadis
aadis / 3n+1.c
Created July 8, 2012 13:14
Chaitanya's Program
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
int squence_size = 1000000/13;
int *temp_lens;
int *squence_lens;
long long unsigned int s; //starting of the given interval
long long unsigned int e; //ending of the given interval
@aadis
aadis / gist:3046967
Created July 4, 2012 11:59
linked in js
<script src="//platform.linkedin.com/in.js" type="text/javascript">
api_key: 1g4ew6p5t9cb
</script>
<script type="IN/Apply" data-companyid="565604" data-jobtitle="Developer" data-joblocation="Bangalore" data-logo="http://www.ideadevice.com/assets/logo-c3f1ff488883e1534949385397f3886a.png" data-themecolor="#008ED5" data-email="careers@ideadevice.com"></script>

Hi Hitesh, Anoop,

Hope this mail find you both in the pink of health.

As per our discussion during my last visit to NSE (July/21) we will be implementing a slightly modified support policy. It has been getting harder for us to consistently track support requests and issues spread over multiple emails. This has impacted our turnaround time for NSE and we're not able to deliver support to the level desired by us.

To this end, we will implement the following principles:

  1. We will not be able to respond to support requests mailed to individual ID engineers. Since NSE cannot be aware of the vacation and other schedules for ID engineers, support requests can be lost or not responded in time.
@aadis
aadis / gist:1115325
Created July 30, 2011 08:14
My testcombo HTML file
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title> namshub Epsilon </title>
<link href="/static/vendor/yui-3.3.0pr3/build/cssbase/base-context-min.css" media="screen" rel="stylesheet" type="text/css" />
<link href="/cached/2.0.0-RC6/css/global.css" media="screen" rel="stylesheet" type="text/css" />
@aadis
aadis / gist:1115323
Created July 30, 2011 08:12
yui config with combine:true and custom modules
<script type="text/javascript">
<!--
YUI_config={
loadOptional: true,
filter: 'debug',
timeout: 10000,
combine: true,
comboBase: '/combo.php?',
groups: {
custom: {
adding: yui-base Object {}
adding: get Object { requires=[1]}
adding: features Object { requires=[1]}
adding: rls Object { requires=[2]}
adding: intl-base Object { requires=[1]}
adding: yui-log Object { requires=[1]}
adding: yui-later Object { requires=[1]}
adding: yui-throttle Object { requires=[1]}
adding: yui Object { use=[8]}
use: ["gallery-dispatcher", function()]