start new:
tmux
start new with session name:
tmux new -s myname
import atomac | |
a=atomac.getAppRefByLocalizedName('Skype') | |
cloud_menu = a.AXChildren[2].AXChildren[0] | |
print cloud_menu | |
# Some apps are coded so menu items aren't populated until they're displayed | |
try: | |
cloud_menu.Press() | |
except atomac.ErrorCannotComplete: | |
# An accessibility bug you'll see sometimes - the app never reports |
@import "compass/css3/images"; | |
// CSS-only multi-line ellipsis with generated content | |
// yields `position:relative`, so remember to declare an eventual `position:absolute/fixed` *after* including this mixin | |
@mixin limitLines( | |
$maxLinesPortrait, // Mandatory: The number of lines after which the clipping should take action. | |
$maxLinesLandscape: $maxLinesPortrait, // You may provide a different line limit for landscape orientation. | |
// Note that 'portrait' is our default orientation. However, if you omit $maxLinesLandscape, | |
// the value of $maxLinesPortrait is used for whatever orientation (that is, without a media query). |
<html> | |
<head> | |
<script src="https://apis.google.com/js/client.js"></script> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> | |
<script> | |
function auth() { | |
var config = { | |
'client_id': 'OAUTH_CLIENT_ID', | |
'scope': 'https://www.google.com/m8/feeds' | |
}; |
/* | |
Chrome Packaged app Bluetooth API test | |
Before interacting with a BT device, you need to : | |
1) get the device MAC and service UUID with startDiscovery and getServices methods | |
2) request permission with chrome.permissions.request | |
3) add the service profile with chrome.bluetooth.addProfile (a profile is only {uuid:'xxxxxxx...'}) | |
*/ | |
// onConnection callback | |
chrome.bluetooth.onConnection.addListener( |
var opt = { | |
type: 'list', | |
title: 'keep burning', | |
message: 'Primary message to display', | |
priority: 1, | |
items: [{ title: '', message: ''}], | |
iconUrl:'../images/icon.png' | |
}; | |
chrome.notifications.create('notify1', opt, function(id) { console.log("Last error:", chrome.runtime.lastError); }); |
gulp = require('gulp'); | |
lr = require('gulp-livereload'); | |
gulp.task('watch', function() { | |
lr.listen() | |
dest = ["app/views/**","app/assets/**"]; | |
gulp.watch(dest).on('change', function(file) { | |
lr.changed(file.path); | |
}); | |
}); |
var d3 = require('d3'); | |
var jsdom = require("jsdom-little"); | |
var React = require('react-native'); | |
var { View, Text } = React; | |
var Svg = require('./Svg'); | |
var parseDate = d3.time.format("%d-%b-%y").parse; | |
var D3Chart = React.createClass({ | |
componentDidMount() { |
/** | |
* http://applemusic.tumblr.com/ | |
* https://jsfiddle.net/xq56dmrh/ | |
*/ | |
/** Ultra Light */ | |
@font-face { | |
font-family: "San Francisco"; | |
font-weight: 100; | |
src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-ultralight-webfont.woff"); |
/** | |
* Copyright 2012 Akseli Palén. | |
* Created 2012-07-15. | |
* Licensed under the MIT license. | |
* | |
* <license> | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files | |
* (the "Software"), to deal in the Software without restriction, | |
* including without limitation the rights to use, copy, modify, merge, |