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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Tetris</title> | |
<style type="text/css"> | |
body { text-align:center; font:12px "Helvetica Neue", Verdana; } | |
#container { text-align:center; border:0px solid #ccc; width:845px; margin:auto; overflow:hidden; margin-top:50px; } | |
#info { width:400px; text-align:left; float:left; border:0px solid #ccc; margin-left:20px; height:600px; | |
} |
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
#!/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
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
SELECT | |
rf.absolutePath, | |
fo.pathFromRoot, | |
fi.baseName || '.' || fi.extension as fullName, | |
ai.*, | |
ds.*, | |
fi.*, | |
rf.* | |
FROM | |
Adobe_images ai |
NewerOlder