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 numpy as np | |
def checkHorizontal(mat): | |
for row in mat: | |
row = list(row) | |
if row.count(1) == 3 and row.count(2) == 3 and row.count(3) == 3: | |
pass | |
else: | |
return False | |
return True |
Make sure to change the url in the fetch part of the js code. This is used with the https://github.com/rawsh/devpygrunt code to hack email subscribtions into ghost. Note: This does not use ghost built in subscribers. This uses mailgun. To make it send emails for every new post, sign up for zapier and add a mailgun rss sender.
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
bar-list = ["topbar", "otherbar"]; | |
topbar: { | |
// List of all blocks | |
block-list: ["workspaces", "space", "title", "cpu", "memory", "network", "date"]; | |
// Font (considering using an Icon Font - like Material Icons) | |
// Only on first monitor | |
font: "DejaVu Sans Mono 8" | |
monitor: "HDMI-1"; |
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
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/fluidbox/2.0.4/css/fluidbox.min.css" /> | |
<script type="text/javascript" src='https://cdnjs.cloudflare.com/ajax/libs/fluidbox/2.0.4/js/jquery.fluidbox.min.js'></script> | |
<script> | |
$('#post-header-image > img, #article-content img').each(function() { | |
$(this).wrap("<a href='" + this.src + "'/>"); | |
}); | |
$('#post-header-image > a, #article-content a').fluidbox({ | |
viewportFill: 1, | |
}); | |
</script> |
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
bar-list = ["topbar"]; | |
topbar: { | |
// List of all blocks | |
block-list: ["workspaces", "space", "title", "cpu", "memory", "network", "date"]; | |
font: "Droid Sans Mono 8" | |
// set monitor if you wish: | |
// monitor: "HDMI-1"; |
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
#historydropmarker, #autocomplete-history-dropmarker, #urlbar-history-dropmarker, #dropmarker, .autocomplete-history-dropmarker { | |
display: none !important; | |
} | |
/* #urlbar > #identity-box > #identity-icon { | |
display: none; | |
} */ | |
.urlbar-input-box, #urlbar-reload-button, #PanelUI-button, #urlbar-go-button, #urlbar-stop-button { | |
border: none; |
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
int ones = t % 10; | |
int twos = (t-t%10)/10; | |
String[] singledigits = new String[] {"", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"}; | |
String[] doubledigits = new String[] {"", "ten", "twenty", "thirty", "fourty", "fifty", "sixty", "seventy", "eighty", "ninety"}; | |
String[] teens = new String[] {"ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen"}; | |
if (twos == 0) { | |
inwords = singledigits[ones]; | |
} else if (twos == 1) { |
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
#!/usr/bin/env python2 | |
from oauth2client.client import OAuth2WebServerFlow | |
import gdata.photos.service | |
import os | |
print "Content-type: text/html" | |
print "<title>Google Photos Browser</title>" |
OlderNewer