Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/php
<?php
/*
* DroneMapper.com
* Quick EC2 Integration Script
* 2012-04-14
*
* This script works from the command line and allows you to spin up an AWS EC2
* instance that you have already created via the AWS console.
*
@atodev
atodev / index.html
Last active June 1, 2021 23:10 — forked from anonymous/index.html
[Widget Phone] # Widget Phone
<div class="phonewrap landscape">
<div class="bananaphone">
<div class="iframe-wrapper">
<iframe id="mobile-preview-content" class="preview-frame" src='https://trustsphere.mitrustview.com/widget/widget?key=0ea79ty6hzfnjqh4&options={"header":true,"border":true,"widget":"linksWithin"}&query={"remote":"[email protected]"}'>
</iframe>
</div>
</div>
</div>
<a href="#" class="btn rotate">Rotate Me</a>
<a href="#" class="btn stretch">Stretch Me</a>
@atodev
atodev / Correlation
Last active December 28, 2023 15:46
Pandas #pandas
https://www.youtube.com/watch?v=rr-KwIjinpM
(25-57)
@atodev
atodev / Libraries.ipynb
Last active November 11, 2020 23:23
[Import] Import libraries into Jupyter Notebook #JN
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@atodev
atodev / sublime
Last active November 11, 2020 23:21
[sublime] how to's #sublime
Upper / Lower case
To convert to upper case: In quick succession, hit Cmd–K then Cmd–U (Mac) or Ctrl–K then Ctrl–U (Windows).
To convert to lower case: In quick succession, hit Cmd–K then Cmd–L (Mac) or Ctrl–K then Ctrl–L (Windows).
#Remove open lines in text
Step 1: press on ctrl+H
Step 2: press on RegEX key
Step 3: write this in the Find: ^[\s]*?[\n\r]+
Step 4: replace all
or - ^\n|^\s+$
@atodev
atodev / count.
Created November 11, 2020 23:37
[Count] Count in Jupyter note book #JN
PreCC=dfpr.groupby ('From')['From'].count().sort_values(ascending=False)
PreCC
@atodev
atodev / Export
Last active November 13, 2020 00:17
[Export] Export a file from Jupyter #JN
df.to_csv(r'somename.csv')
dfc.to_csv(r'edgelistall.csv', index = False)
to html
!jupyter nbconvert --to html cae-count.ipynb
@atodev
atodev / lines.ps1
Last active November 11, 2020 23:51
[Lines] #PoweShell
PS - count lines
PS M:\LastCheck> dir -Recurse *.csv | Get-Content | Measure-Object -Line
get unique list From
PS M:\LastCheck> dir -Recurse *.llc | Get-Content |select-object 'From' | Sort -Descending -Unique
@atodev
atodev / amplify
Last active June 8, 2021 15:37
[cognito] #AWS #Cognito
amplify
https://docs.amplify.aws/start/q/integration/angular
@atodev
atodev / telemetery js
Created June 24, 2021 16:39
[open telemetery]
https://www.youtube.com/watch?v=r8UvWSX3KA8