This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function XHConn() | |
{ | |
var xmlhttp, bComplete = false; | |
try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } | |
catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } | |
catch (e) { try { xmlhttp = new XMLHttpRequest(); } | |
catch (e) { xmlhttp = false; }}} | |
if (!xmlhttp) return null; | |
this.connect = function(sURL, sMethod, sVars, fnDone) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
latex paper.tex | |
bibtex paper | |
latex paper.tex | |
latex paper.tex |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
py_list_notes.txt | |
Created by Vaibhav Mallya on 2010-11-26. | |
Copyright (c) 2010 Vaibhav Mallya. All rights reserved, to this version, and all previous versions, of this file. | |
""" | |
http://svn.python.org/projects/python/trunk/Objects/listobject.c | |
Function: static PyObject * list_slice(PyListObject *a, Py_ssize_t ilow, Py_ssize_t ihigh) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
listbm.py | |
Created by Gopal Sharma on 2010-11-26. | |
Copyright (c) 2010 Gopal Sharma and Vaibhav Mallya. All rights reserved to this version, and all previous versions, of this file. | |
""" | |
import random | |
import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import sqrt, floor, ceil | |
def compute(num): | |
upper_bound = int(ceil(sqrt(num))) | |
counter = 0 | |
lower_bound = int(sqrt(floor(num/2))) | |
for i in range(lower_bound, upper_bound+1): | |
diff = num - i**2 | |
if diff < 0: | |
continue | |
s = sqrt(diff) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Basic Python program for doing some stuff with the conversation format | |
you wanted. | |
--Vaibhav Mallya | |
""" | |
import sys | |
import nltk | |
sent_tokenize = nltk.tokenize.sent_tokenize | |
word_tokenize = nltk.tokenize.word_tokenize |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ffi = require('ffi'), | |
ref = require('ref'), | |
Struct = require('ref-struct'), | |
Library = require('./Library'), | |
Type = ref.Type, | |
NULL = ref.NULL, | |
isNull = ref.isNull; | |
var groups = ['libs', 'types', 'structs', 'callbacks', 'enums']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thanks for your interest in OfferLetter.io! Here's the fine print you are consenting to as you use this service: | |
The Advisers are just that - advisers. They are usually not employees of Smart Beehive. If they are, this will be made clear in the conversation. | |
If you use this service, you agree that neither Adviser(s), nor Smart Beehive Co., are liable for any negative consequences of any advice or action taken or given. | |
Smart Beehive Co. uses modern security practices, including two-factor authentication, and encryption, to protect your data, work history, and negotiation plan. In the event a leak does occur, your agree to hold Smart Beehive Co. free of any and all liability. | |
Although it has never happened, it is possible you may lose a job or job opportunity as a result of provided advice by Smart Beehive Co. or an Adviser. If this happens, you agree to hold both Smart Beehive Co. and your Advisers free of any liability. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings") | |
from django.core.wsgi import get_wsgi_application | |
from whitenoise.django import DjangoWhiteNoise | |
from raven.contrib.django.raven_compat.middleware.wsgi import Sentry | |
from django.core.wsgi import get_wsgi_application |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json, requests | |
from django.http import HttpResponse | |
from django.shortcuts import render_to_response, render | |
from django.http import JsonResponse, HttpResponse | |
def test_loop(request): | |
print "in my glorious infinite loop" | |
while True: |
OlderNewer