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 subprocess | |
import datetime | |
import time | |
minutes=2 | |
calendar_name = "Home" | |
def run_applescript(script): | |
osa_command = ['osascript', '-e', script] | |
return subprocess.run(osa_command, capture_output=True, text=True).stdout |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
var cultureMap = [ | |
{ | |
"id": 1, | |
"name": "Argentina", | |
"datamapId": "ARG", | |
"isoCode": 32, | |
"isoShortCode": "AR", | |
"scores": { | |
"communicating": 56, | |
"evaluating": 56, |
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
[ | |
{ | |
"id": 1, | |
"name": "Argentina", | |
"datamapId": "ARG", | |
"isoCode": 32, | |
"isoShortCode": "AR", | |
"scores": { | |
"communicating": 56, | |
"evaluating": 56, |
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 int R_DATA = 1; | |
const int R_RESET = 2; | |
const int R_CLOCK = 3; | |
void setup() { | |
pinMode(R_DATA, OUTPUT); | |
pinMode(R_RESET, OUTPUT); | |
pinMode(R_CLOCK, OUTPUT); | |
int b[] = {0,0,0,0,1,0,1,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
# Keep in mind that when asking for a `return` after another, only the first one will be output. | |
# This example is meant as a simple starting point, to show how to get the information in the simplest available way. | |
# Google Chrome | |
tell application "Google Chrome" to return URL of active tab of front window | |
tell application "Google Chrome" to return title of active tab of front window | |
# Google Chrome Canary | |
tell application "Google Chrome Canary" to return URL of active tab of front window | |
tell application "Google Chrome Canary" to return title of active tab of front window | |
# Chromium |
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
#!/bin/bash | |
f=$(pwd) | |
sips --resampleWidth 512 "${f}/${1}" --out "${f}/iTunesArtwork" | |
sips --resampleWidth 1024 "${f}/${1}" --out "${f}/iTunesArtwork@2x" | |
sips --resampleWidth 57 "${f}/${1}" --out "${f}/Icon-57.png" | |
sips --resampleWidth 57 "${f}/${1}" --out "${f}/Icon.png" | |
sips --resampleWidth 114 "${f}/${1}" --out "${f}/Icon-57@2x.png" | |
sips --resampleWidth 114 "${f}/${1}" --out "${f}/Icon@2x.png" |
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 | |
/** | |
* Template Name: Archives list page | |
* | |
* Custom archives template for wordpress that lists all the posts grouped under month/year. I use this on http://blog.fuss.in/archives/ | |
* | |
* To use: | |
* 1. Paste this file into wp-content/themes/<theme-name>/page-templates/ | |
* 2. Select page template as "Archives List Page" on the right side bar in "New Page", page. | |
* 3. insert this short tag "[archives]", wherever you want the list to be displayed. |
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/python | |
import Image | |
import os | |
import sys | |
import glob | |
from optparse import OptionParser | |
args = sys.argv | |
parser = OptionParser() | |
parser.add_option("-o", "--output", dest="output") |
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
SELECT | |
rf.absolutePath, | |
fo.pathFromRoot, | |
fi.baseName || '.' || fi.extension as fullName, | |
ai.*, | |
ds.*, | |
fi.*, | |
rf.* | |
FROM | |
Adobe_images ai |
NewerOlder