Thursday, September 1, 2016

Leonard Susskind: Entanglement is Important to Holding the Parts of Space Together

Leonard Susskind: Space Is Zip Together By Entanglement

Leonard Susskind: The Form of Entanglement that's there in Empty Space Between Parts of Space

Leonard Susskind: How to Create Fully Entangled Macroscopic Objects

Leonard Susskind: Even Just Empty Space is Entangled

Leonard Susskind: Explaining Quantum State

Leonard Susskind: Correlation of Two Coins: You Didn't Know Everything That Could Be Known

Leonard Susskind: Black Hole is the Portal Into the Connection Between Quantum Mechanics and Gravity

AWK: Hashtag Safe String Function

Command:

$ cat twitter_hash_safe_string.awk


Result:

function twitter_hash_safe_string(hashStr)
{
gsub(/^[0-9]+/,"", hashStr);
     gsub(" ", "", hashStr);
gsub("\\.", "", hashStr);
gsub("'", "", hashStr);
gsub("%", "", hashStr);
gsub(/"/, "", hashStr);
gsub("\\(", "", hashStr);
gsub("\\)", "", hashStr);
gsub("&", "And", hashStr);
gsub("-", "", hashStr);
gsub("=", "", hashStr);
gsub(">", "", hashStr);
gsub("<", "", hashStr);

gsub("\\$", "S", hashStr);

     gsub("\\/", " #", hashStr);
     gsub(",", " #", hashStr);
     gsub(":", " #", hashStr);
gsub(";", " #", hashStr);

return  hashStr;
}

Tuesday, August 30, 2016

Erika Ikuta (生田絵梨花): Poster #2

Erika Ikuta Poster #2

Erika Ikuta (生田絵梨花): Poster #1

Erika Ikuta Poster #1

Ruby: Print Out Multiple Lines

Command:

$ printf "1,name1,address1\n2,name2,address2" | ruby -e "while status = STDIN.gets do = STDIN.gets do
print status
end"


Result:

1,name1,address1
2,name2,address2

Friday, August 26, 2016