I hereby claim:
- I am cagrimmett on github.
- I am cagrimmett (https://keybase.io/cagrimmett) on keybase.
- I have a public key ASC538jgUqYEVxuHxZKB4S8nFVUdyGklll9b8CkJ0ONthgo
To claim this, I am signing this object:
I am attesting that this GitHub handle cagrimmett is linked to the Tezos account tz1Q2eekfg9ZAoxowc7YPeC14EfJLxbd1Sfw for tzprofiles | |
sig:edsigtsT3Zc1qYQW6sJJoavVWM1bEQn2utU6NG4795U1qMANDKwrFPNgb9ZhoDMwAN3p9dKDzgYacBynJgLpcw3QatL64GbatWn |
<?php | |
add_action( 'template_redirect', function() { | |
global $post; | |
if ( current_user_can('administrator') ) { return; } | |
if (is_single()){ | |
$cat = get_the_category(); | |
wp_redirect( 'https://crash.co/content/' . $cat[0]->slug . '/' . $post->post_name ); | |
die; | |
} else { | |
wp_redirect( 'https://crash.co/content/all' ); |
<?php | |
$key = $_SERVER['QUERY_STRING']; | |
if ($key == 'RANDOM_TOKEN' ) { | |
echo "String matches!"; | |
} else { | |
exit("You are not authorized. Go away."); | |
} | |
?> |
I hereby claim:
To claim this, I am signing this object:
"""Print most frequent N-grams in given file. | |
Usage: python ngrams.py filename | |
Problem description: Build a tool which receives a corpus of text, | |
analyses it and reports the top 10 most frequent bigrams, trigrams, | |
four-grams (i.e. most frequently occurring two, three and four word | |
consecutive combinations). | |
NOTES |
license: gpl-3.0 |
UPDATE wp_posts SET post_content = REPLACE(post_content, 'FIND', 'REPLACE'); |
license: gpl-3.0 |
license: gpl-3.0 | |
height: 960 |