have fun using this
This file contains 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
# -*- coding: utf-8 -*- | |
"""Cleaning_Feature_engineering.ipynb | |
Automatically generated by Colaboratory. | |
Original file is located at | |
https://colab.research.google.com/drive/1cyB8vww3lA0GhABA0mGJluHjfA0VnY5u | |
""" | |
from google.colab import drive |
This file contains 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
/* | |
assume you want to truncate a longer text to a certain amount of characters but you don't want to stop at | |
word boundaries. Instead lets cut the text at sentence ending punctuation marks like ! ? . | |
*/ | |
function pos(str, char) { | |
let pos = 0 | |
const ret = [] | |
while ( (pos = str.indexOf(char, pos + 1)) != -1) { | |
ret.push(pos) |
This file contains 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
<?php | |
namespace App\Command; | |
use Badcow\LoremIpsum\Generator; | |
use Symfony\Component\Console\Command\Command; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use ZipStream\ZipStream; |
This file contains 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
import SimpleCryptoJS from 'simple-crypto-js' | |
const blockstack = require( 'blockstack' ); | |
const { getPublicKeyFromPrivate } = require('blockstack'); | |
const { encryptECIES, decryptECIES } = require('blockstack/lib/encryption') | |
... | |
class App extends React.Component { | |
componentDidMount() { |
This file contains 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
const blockstack = require( 'blockstack' ); | |
const { getPublicKeyFromPrivate } = require('blockstack'); | |
const { encryptECIES, decryptECIES } = require('blockstack/lib/encryption') | |
... | |
class App extends React.Component { | |
constructor() { | |
super() | |
this.state = { |
This file contains 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
Verifying my Blockstack ID is secured with the address 1N9A6gny5PTDiZ1JYZbWbgAskSWTyMuvS7 https://explorer.blockstack.org/address/1N9A6gny5PTDiZ1JYZbWbgAskSWTyMuvS7 |
This file contains 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
Verifying my Blockstack ID is secured with the address 1N9A6gny5PTDiZ1JYZbWbgAskSWTyMuvS7 https://explorer.blockstack.org/address/1N9A6gny5PTDiZ1JYZbWbgAskSWTyMuvS7 |
This file contains 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 createSeed(){ | |
const seedsize = 81; | |
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ9"; | |
let seed = ""; | |
for (var i = 0, n = chars.length; i < seedsize; ++i) { | |
seed += chars.charAt(Math.floor(Math.random() * n)); | |
} | |
return seed; | |
} |