/[\u0600-\u06ff]|[\u0750-\u077f]|[\ufb50-\ufbc1]|[\ufbd3-\ufd3f]|[\ufd50-\ufd8f]|[\ufd92-\ufdc7]|[\ufe70-\ufefc]|[\uFDF0-\uFDFD]/
Arabic (0600—06FF, 225 characters)
Arabic Supplement (0750—077F, 48 characters)A while back I wrote a blog post explaining Markov chains and demonstrating different ways of finding their steady-state distribution in R. Now, I want to play with Markov chains as a graph. I’m going to pull examples from around the internet and answer the same questions in Cypher as the authors do with matrices. This gives me the opportunity to explore more advanced Cypher queries while working with a topic I enjoy very much (stochastic processes and Markov chains). So this is officially just for funsies.
I found three Markov chains online that I’m going to showcase, and they involve the following topics:
| <!-- Jinja Unique ID Generator --> | |
| {% macro random_int(len) -%} | |
| {% for n in range(len) %} | |
| {{ [0,1,2,3,4,5,6,7,8,9]|random }} | |
| {% endfor %} | |
| {%- endmacro %} | |
| {% macro unique_id(count_groups=5, group_len=6, separator='-') -%} | |
| {% set parts %} |
This is a collection of the most common commands I run while administering Postgres databases. The variables shown between the open and closed tags, "<" and ">", should be replaced with a name you choose. Postgres has multiple shortcut functions, starting with a forward slash, "". Any SQL command that is not a shortcut, must end with a semicolon, ";". You can use the keyboard UP and DOWN keys to scroll the history of previous commands you've run.
http://www.postgresql.org/download/linux/ubuntu/ https://help.ubuntu.com/community/PostgreSQL
| from random import randint, random | |
| from math import floor | |
| def fisher_yates_shuffle(the_list): | |
| list_range = range(0, len(the_list)) | |
| for i in list_range: | |
| j = randint(list_range[0], list_range[-1]) | |
| the_list[i], the_list[j] = the_list[j], the_list[i] | |
| return the_list |
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| i = ['headline one', | |
| 'headline two', | |
| 'headline three'] | |
| j = ['first line one', | |
| 'first line two', | |
| 'first line three'] |
| jQuery(document).ready(function() { | |
| var originalTitle = document.getElementsByTagName("title")[0].innerHTML; | |
| jQuery(window).on("blur", function() { | |
| timerId = setTimeout(function() { | |
| document.getElementsByTagName("title")[0].innerHTML = "(1) " + originalTitle; | |
| } | |
| , 2000); | |
| } | |
| ); | |
| jQuery(window).on("focus", function() { |
This is a collection of snippets, not a comprehensive guide. I suggest you start with Operational PGP.
Here is an incomplete list of things that are different from other approaches:
| #!/usr/bin/env python2 | |
| # -*- coding: utf-8 -*- | |
| """ fuzzing accessible urls. | |
| >>> import random, string | |
| >>> ld = string.letters+string.digits | |
| >>> ld | |
| 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789' | |
| >>> len(ld) | |
| 62 |