Skip to content

Instantly share code, notes, and snippets.

View anandprabhakar0507's full-sized avatar
🎯
Focusing

Anand Prabhakar anandprabhakar0507

🎯
Focusing
View GitHub Profile
@anandprabhakar0507
anandprabhakar0507 / cleanDatabase.ipynb
Created August 30, 2018 01:05 — forked from bnmnetp/cleanDatabase.ipynb
interactivepython database cleanup
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anandprabhakar0507
anandprabhakar0507 / third-party.js
Last active August 30, 2018 01:08 — forked from bnmnetp/third-party.js
Include a Third Party library not in skulpt-stdlib.js
// This snippet shows the cool new functionality added by @bzwheeler and the team at trinket.io
// You can now develop and host your own modules for skulpt, and set up a page to make those
// modules available as in the following.
Sk.externalLibraries = {
numpy : {
path: 'http://example.com/static/primeronoo/skulpt/external/numpy/__init__.js',
dependencies: ['/static/primeronoo/skulpt/external/deps/math.js'],
},
matplotlib : {
@anandprabhakar0507
anandprabhakar0507 / simpleskulpt.html
Created August 30, 2018 01:09 — forked from bnmnetp/simpleskulpt.html
Here is about the simplest example I can think of that gets you a working skulpt environment. This little sample shows regular python as well as importing a module.
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js" type="text/javascript"></script>
<script src="http://www.skulpt.org/static/skulpt.min.js" type="text/javascript"></script>
<script src="http://www.skulpt.org/static/skulpt-stdlib.js" type="text/javascript"></script>
</head>
<body>
@anandprabhakar0507
anandprabhakar0507 / Email Server (Windows Only).md
Created October 5, 2018 18:46 — forked from raelgc/Email Server (Windows Only).md
Setup a Local Only Email Server (Windows Only)
@anandprabhakar0507
anandprabhakar0507 / google-dorks
Created December 12, 2018 19:53 — forked from stevenswafford/google-dorks
Listing of a number of useful Google dorks.
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!
@anandprabhakar0507
anandprabhakar0507 / SimpleHTTPServerSSL.py
Created December 19, 2018 17:51 — forked from ubershmekel/SimpleHTTPServerSSL.py
SimpleHTTPServerSSL.py is a python 3 version of SimpleSecureHTTPServer.py from code.activestate.com
'''
SimpleHTTPServerSSL.py - simple HTTP server supporting SSL/TLS. I.e. HTTPS. For python 3.3
- replace CERT and KEY with the location of your .pem server file.
- the default port is 443.
usage: python SimpleHTTPServerSSL.py
based on http://code.activestate.com/recipes/442473-simple-http-server-supporting-ssl-secure-communica/
'''
@anandprabhakar0507
anandprabhakar0507 / deploy-static-site-heroku.md
Created January 7, 2019 16:09 — forked from wh1tney/deploy-static-site-heroku.md
How to deploy a static website to Heroku

Gist

This is a quick tutorial explaining how to get a static website hosted on Heroku.

Why do this?

Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.

Basic Assumptions

@anandprabhakar0507
anandprabhakar0507 / index.html
Created January 28, 2019 14:59
(Not my own) ProtonVPN IKEv2 profile generator. Copied from https://govt.is/proton.html in case of take-down.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>IKEv2 configurator</title>
</head>
<body>
<h2>Use this tool to create an 'on demand' IKEv2 profile.</h2><br />Set an OpenVPN user/pass in Dashboard first.<br />This is not your ProtonMail password.<br />For use with ProtonVPN only.<br />
<form name="mainForm" method="get" id="Main">
<h5><textarea id="input1" cols="20" rows="2" style="display:none;><?xml version="1.0" encoding="UTF-8"?>
@anandprabhakar0507
anandprabhakar0507 / ZoomCardController
Created January 31, 2019 01:15 — forked from steve-salmond/ZoomCardController
A simple implementation of an infinite zooming technique a la Zoom Quilt (http://zoomquilt.org) for Unity 3d. Takes the player's position on the z axis and adjusts the cards to match. The cards should be rendered by an orthographic camera
using UnityEngine;
using System.Collections;
public class ZoomCardController : MonoBehaviour {
/** Collection of zooming cards to be displayed. */
public GameObject[] Cards;
/** Distance player travels between cards. */
public float DistanceBetweenCards = 10;
@anandprabhakar0507
anandprabhakar0507 / rprog-quiz1.txt
Created March 3, 2019 14:03 — forked from kfeoktistoff/rprog-quiz1.txt
R Programming: Quiz1
1
The R language is a dialect of which of the following programming languages?
S
2
The definition of free software consists of four freedoms (freedoms 0 through 3). Which of the following is NOT one of the freedoms that are part of the definition?
The freedom to prevent users from using the software for undesirable purposes.
3
In R the following are all atomic data types EXCEPT