Skip to content

Instantly share code, notes, and snippets.

@lomanyong
lomanyong / openChrome.applescript
Created December 19, 2016 06:18
AppleScript to Open Chrome from Facebook Inc.
(*
Copyright (c) 2015-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.
*)
property targetTab: null
property targetTabIndex: -1
@lomanyong
lomanyong / Android 类似 Dialog 的窗口渐变效果
Last active August 29, 2015 14:20
Android 类似 Dialog 的窗口渐变效果
/**
* 调整窗口的透明度
* @param from>=0&&from<=1.0f
* @param to>=0&&to<=1.0f
*
* */
private void dimBackground(final float from, final float to) {
final Window window = getWindow();
ValueAnimator valueAnimator = ValueAnimator.ofFloat(from, to);
valueAnimator.setDuration(500);
<?php
echo "hello world";
?>