Skip to content

Instantly share code, notes, and snippets.

View DeastinY's full-sized avatar
🏠
Working from home

DeastinY DeastinY

🏠
Working from home
View GitHub Profile
['ve', 'got', 'did', 'hear', 'hate']
['don', 'want', 'say', 'won', 'hate']
['yeah', 'make', 'gonna', 'body', 'got']
['stop', 'gonna', 'want', 'matter', 'll']
['life', 'new', 'live', 'death', 'day']
['like', 'fucking', 'shit', 'man', 'got']
['ll', 'fall', 'make', 'man', 'lost']
['just', 'want', 'stand', 'edge', 'say']
['time', 'won', 'stand', 'face', 'end']
['away', 'come', 'stand', 'heart', 'stay']
ghost-0 (err):
ghost-0 (err):
ghost-0 (err): ERROR: Access denied.
ghost-0 (err):
ghost-0 (err): Error
ghost-0 (err): at Error.UnauthorizedError (/var/www/ghost/core/server/errors/unauthorized-error.js:6:18)
ghost-0 (err): at authenticate (/var/www/ghost/core/server/middleware/auth.js:100:50)
ghost-0 (err): at allFailed (/var/www/ghost/node_modules/passport/lib/middleware/authenticate.js:94:18)
ghost-0 (err): at attempt (/var/www/ghost/node_modules/passport/lib/middleware/authenticate.js:167:28)
ghost-0 (err): at Strategy.strategy.fail (/var/www/ghost/node_modules/passport/lib/middleware/authenticate.js:284:9)
def f(a, r):
last = a[0]
for i in range(len(a)):
if abs(last - a[i]) > r:
return False
last = a[i]
return True
def g(a, r):
last, j, p = a[0], 0, []
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
constructor(public navCtrl: NavController) {

Keybase proof

I hereby claim:

  • I am deastiny on github.
  • I am deastiny (https://keybase.io/deastiny) on keybase.
  • I have a public key ASAVxM4gPtS-5S-2j0JZqeOTDMp3oKwPcGTV787VPlUWbwo

To claim this, I am signing this object:

➜ ~ echo "test test" >> somefile.txt
➜ ~ gpg --symmetric somefile.txt
➜ ~ cat somefile.txt
test test
➜ ~ cat somefile.txt.gpg
���6,�f��I�� ؞�i���݇h��͡�~ �Nv�-�&��Z'�i�r57�"�˜vp�� ���\��jzuZT�8�_|➜ ~ rm somefile.txt
➜ ~ gpg -d somefile.txt.gpg
gpg: AES encrypted data
gpg: encrypted with 1 passphrase
test test
@DeastinY
DeastinY / input.txt
Last active December 3, 2018 13:07
Christmas Songs Dataset
O Come, All Ye Faithful
O come, all ye faithful, joyful and triumphant,
Come ye, O come ye, to Bethlehem.
Come and behold Him, born the King of angels;
Refrain
O come, let us adore Him,
O come, let us adore Him,
### Keybase proof
I hereby claim:
* I am deastiny on github.
* I am deastiny (https://keybase.io/deastiny) on keybase.
* I have a public key ASAA-92XOq0rTDS7myuZwjwZ4mTNCkmYN9tBpuQmoDsWmgo
To claim this, I am signing this object:
@DeastinY
DeastinY / asic_plot.py
Created May 6, 2019 13:20
Basic, common style ASIC plot guide
width, height = 18, 14
plt.figure()
mydata.plot.bar(color='C0', figsize=(width, height))
ax = plt.gca()
ax.set_title("Title", size=28)
ax.set_ylabel("YLabel", size=24)
ax.set_xlabel("XLabel", size=24)
ax.grid(True)
ax.tick_params(axis="both", which="major", labelsize=18)
plt.tight_layout()
import time
from multiprocessing import Pool, cpu_count
def my_func(i):
time.sleep(1)
return i
print(cpu_count())
with Pool(cpu_count()) as pool: