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
''' | |
{:x} = hex | |
{:b} = binary | |
{:o} = octa | |
{:.2} = upto 2 significant places | |
''' | |
for i in range(64): | |
print "{}-{:x}-{:b}-{:o}-{:.2} ".format(i,i,i,i,i*0.123) |
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
// How to: | |
// 1) Login into https://icloud.com | |
// 2) Open the developer tools and execute this code in the console | |
// See more @ https://medium.com/bugbountywriteup/how-apple-stored-all-your-email-metadata-for-years-on-their-servers-2a61b1a3232d | |
const _API_URL='https://p18-mailws.icloud.com/wm/recents'; | |
const _requestContacts = () => { | |
console.warn('Requesting your contacts...'); | |
return fetch(_API_URL, { | |
method: 'POST', | |
headers: { |
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
tree -H . -L 1 --noreport --charset utf-8 > index.html |
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 getRandomColor() { | |
var letters = '0123456789ABCDEF'; | |
var color = '#'; | |
for (var i = 0; i < 6; i++) { | |
color += letters[Math.floor(Math.random() * 16)]; | |
} | |
return color; | |
} |
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 getRandomColor() { | |
return { | |
r: Math.floor(Math.random() *255), | |
g: Math.floor(Math.random() *255), | |
b: Math.floor(Math.random() *255) | |
} | |
} |
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
''' | |
This is to test function calling and name fetching | |
''' | |
import inspect | |
from datetime import datetime | |
def slogger(mesg: str) -> None: | |
''' | |
uses the inspect module to print message with date and caller function |
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
{ | |
"meta": { | |
"theme": "elegant" | |
}, | |
"basics": { | |
"name": "Sandilya Bhamidipati", | |
"label": "Engineering Leader at Adobe", | |
"image": "https://secure.gravatar.com/avatar/268186232a20e762ec60ce56da748b2a", | |
"summary": "Engineering leader with an experience of 14+ years in people management and software engineering. I have managed engineering teams building search, recommendation and predictive analytics services. My work has been published at various top-tier machine learning conferences as well as contributed to 40+ patents. I am interested in building engineering solutions in the areas of Applied Machine Learning, Data mining, Distributed Systems and Distributed Databases.", | |
"website": "https://www.sandilya.com", |
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
pandoc -s -f markdown -t html5 -B ../includes/header.html -A ../includes/footer.html -o ../dist/output.html ../posts/test1.md -H ../styles/pandoc.css |
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
#!/bin/sh | |
ROOT_FOLDER=`pwd` | |
POSTS_FOLDER="posts" | |
DIST_FOLDER="dist" | |
function create_destination() { | |
mkdir -p dist dist/assets dist/posts dist/pages | |
} |
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
#!/bin/bash | |
for file in *.md.html | |
do | |
mv "$file" "$(basename $file .md.html).html" | |
done |