The program below can take one or more plain text files as input. It works with python2 and python3.
Let's say we have two files that may contain email addresses:
- file_a.txt
foo bar
ok [email protected] sup
[email protected],wyd
hello world!
The program below can take one or more plain text files as input. It works with python2 and python3.
Let's say we have two files that may contain email addresses:
foo bar
ok [email protected] sup
[email protected],wyd
hello world!
This is a place to list the landing pages with the best good conversion ratio.
# coding: utf-8 | |
import json | |
import stripe | |
import datetime | |
# Required for OAuth flow | |
from rauth import OAuth2Service | |
# Our secret key from stripe | |
STRIPE_SECRET_KEY = 'sk_test_xxxxxxxxxxxxx' |
import Foundation | |
let config = NSURLSessionConfiguration.defaultSessionConfiguration() | |
let userPasswordString = "[email protected]:password" | |
let userPasswordData = userPasswordString.dataUsingEncoding(NSUTF8StringEncoding) | |
let base64EncodedCredential = userPasswordData!.base64EncodedStringWithOptions(nil) | |
let authString = "Basic \(base64EncodedCredential)" | |
config.HTTPAdditionalHeaders = ["Authorization" : authString] | |
let session = NSURLSession(configuration: config) |
Install Python, follow the steps here.
Steps I take when beginning a new Django project.
$ mkdir [project_name]_project
$ cd [project_name]_project
#import <UIKit/UIKit.h> | |
#import <objc/runtime.h> | |
// Hook with ObjC runtime functions | |
%config(generator=internal) | |
// New methods created below | |
@interface UIGestureRecognizer () | |
+ (void)hs_beginForcingAllNewGestureRecognizersToAllowPencilInput; | |
+ (void)hs_endForcingAllNewGestureRecognizersToAllowPencilInput; |
contract SimpleWallet { | |
// address is the owner | |
address owner; | |
struct WithdrawlStruct { | |
address to; | |
uint amount; | |
} |
// Freestartupkits.com | |
pragma solidity ^0.4.11; | |
contract MyEthBank { | |
mapping (address => uint) private balances; | |
address owner; | |
uint constant totalSupply = 10**4; | |
function MyEthBank() public payable { | |
balances[msg.sender] = totalSupply; |