Recent Pads - Page 34

Total pad count: 688
created 7 years, 94 days ago
build-cve-report-from-redhat

import sys
from subprocess import call
from BeautifulSoup import BeautifulSoup
from os import remove

def print_report( cvelist ):

... view all 69 lines

created 7 years, 94 days ago
generate-random-passwords-in-python

def generate_password( size = 9 ):
    """Return a system generated password"""
    from string import letters, digits
    from random import choice
    pool = letters + digits
    return ''.join( [ choice( pool ) for i in range( size ) ] )
... view all 6 lines

created 7 years, 94 days ago
build-amanda-disk-list

# make_disklist.py # amanda disklist
from datetime import datetime, date, timedelta

def prev_month_bounds( when=None ):
    """Return previous month's ( first date, last date )"""
    if not when: when = datetime.now()

... view all 21 lines

created 7 years, 101 days ago
python-set-a-filepath

from os import path

filepath = filename
if save_dir: 
    filepath = os.path.join(save_dir, filepath) 

"""
... view all 15 lines

created 7 years, 101 days ago
python-test-for-trailing-slash-in-path

    if not save_dir:
        filepath = filename
    elif save_dir.endswith('/'):
        filepath = save_dir + filename
    else:
        filepath = save_dir + '/' + filename
... view all 6 lines

created 7 years, 102 days ago
60e4dc39-1cf2-459b-a3fd-0135f49527c1

peca
teca checa
... view all 3 lines

created 7 years, 102 days ago
tedicopuba

import sqlite3
c = sqlite3.connect(':memory:')
c.row_factory = sqlite3.Row
for row in c.execute('select 1 as foo, 2 as bar'):
    print dict(row)
... view all 5 lines

created 7 years, 104 days ago
python-bingo

from random import choice

if __name__ == '__main__':

    pool = {}
    history = {}

... view all 34 lines

created 7 years, 104 days ago
java-bingo

import java.util.HashMap;
import java.util.Random;
import java.util.Set;

// needed for user input
import java.util.Scanner;

... view all 91 lines

created 7 years, 104 days ago
8b2a9a47-cb65-4a14-bd2e-b2c0a8bcd14d

import java.security.MessageDigest;
import java.math.BigInteger;

// signup for an APIKEY here: https://linkpeek.com/signup

class Api_v1 {
    /***LinkPeek.com API v1 helper class***/
... view all 40 lines

created 7 years, 109 days ago
3ff533b2-6d2f-4f1a-930b-b5b8d718321f

current cost per share 8.81

2524.40 / 7.04 = 353 shares

new share count 353 + 267 = 620

new cost per share (2524.40 +2352)/620.0 = 7.86 per share
... view all 17 lines

created 7 years, 116 days ago
77c6946c-a37e-4434-a71f-5db505110dcd

current cost per share 8.81


2524.40 / 7.04 = 353 shares



... view all 13 lines

created 7 years, 121 days ago
pad-yohdah-styleheet

body {
  background-color: #002B36;
  background-color: #1c4e63;
  color: #f9f9f9;
  font-size: 18px;
  font-family: monospace;
  margin: 0px;
... view all 111 lines

created 7 years, 130 days ago
python-bread-object

#
# This code is public domain, No license, completely unrestricted and without warranty
# russell.ballestrini.net
#

class Bread( object ):
    """
... view all 67 lines

created 7 years, 133 days ago
httphdweweb4comusersalbuterol

def delta2dict( delta ):
    """return dictionary of delta"""
    return { 
        'year'   : delta.days / 365 ,
        'day'    : delta.days % 365 ,
        'hour'   : delta.seconds / 3600 ,
        'minute' : (delta.seconds / 60) % 60 ,
... view all 24 lines

created 7 years, 135 days ago
48a30d12-0edb-4b09-a321-cc0d796c81f9

VARNISh DIDN:T BREAKL ANYthoing>>> 

 I"MASD SURE IT IS A BIT fasteR>>>

  OH WELLS
... view all 5 lines

created 7 years, 135 days ago
07c81d21-f572-4a9a-a063-09fd4657cbba

When are we going to look at DONE?

ℙƴ☂ℌøἤ

asdf

kkkkkkkkkkkk this is the ago.py
... view all 7 lines

created 7 years, 136 days ago
2a08c3e9-b0b8-4b93-b4bd-cb6f1e1075e4

ls
save pad
... view all 3 lines

created 7 years, 139 days ago
69080543-0f50-45ab-aaa0-f7d485a48342

<?php

# signup for an APIKEY here: https://linkpeek.com/signup
DEFINE( 'APIKEY', '' );
DEFINE( 'SECRET', '' );

function api_v1( $uri, $size = '336', $apikey = APIKEY, $secret = SECRET ){
... view all 24 lines

created 7 years, 139 days ago
link

#!/usr/bin/python
from hashlib import md5
from urllib import quote

# signup for an APIKEY here: https://linkpeek.com/signup
APIKEY = ''
SECRET = ''
... view all 21 lines

pages 1 .. 32 33 34 35