Skip to content

Instantly share code, notes, and snippets.

@pklink
pklink / example.js
Created May 14, 2019 23:00
reactive stop watch based on vue
import stopwatch from 'vue-stopwatch'
stopwatch.$watch('seconds', console.log)
stopwatch.start()
//> 1
//> 2
//> 3
stopwatch.pause()
<?php
// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true);
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
// change the following paths if necessary
$yii = dirname(__FILE__) . '/vendor/yiisoft/yii/framework/yii.php';
$config = dirname(__FILE__) . '/protected/config/main.php';
// $config=dirname(__FILE__).'/protected/config/test.php'; // for testing

Keybase proof

I hereby claim:

  • I am pklink on github.
  • I am pklink (https://keybase.io/pklink) on keybase.
  • I have a public key whose fingerprint is 6817 83D1 EF59 24AC DDA0 FEF9 F7B9 6271 2152 3519

To claim this, I am signing this object:

@pklink
pklink / index.html
Created March 25, 2015 18:03
angular radio-group-directive based on semantic-ui's toggle checkbox // source http://jsbin.com/kulajo
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<meta name="description" content="angular radio-group-directive based on semantic-ui's toggle checkbox ">
<script data-require="jquery@*" data-semver="2.1.3" src="http://code.jquery.com/jquery-2.1.3.min.js"></script>
<link data-require="semantic-ui@*" data-semver="1.11.4" rel="stylesheet" href="http://cdn.jsdelivr.net/semantic-ui/1.11.4/semantic.min.css" />
<script data-require="semantic-ui@*" data-semver="1.11.4" src="http://cdn.jsdelivr.net/semantic-ui/1.11.4/semantic.min.js"></script>
<script data-require="angular.js@1.3.15" data-semver="1.3.15" src="https://code.angularjs.org/1.3.15/angular.js"></script>
<script src="script.js"></script>
@pklink
pklink / index.html
Created March 25, 2015 15:45
angular directive for semantic-ui's toggle checkbox // source http://jsbin.com/loguku
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<meta name="description" content="angular directive for semantic-ui's toggle checkbox ">
<script data-require="jquery@*" data-semver="2.1.3" src="http://code.jquery.com/jquery-2.1.3.min.js"></script>
<link data-require="semantic-ui@*" data-semver="1.11.4" rel="stylesheet" href="http://cdn.jsdelivr.net/semantic-ui/1.11.4/semantic.min.css" />
<script data-require="semantic-ui@*" data-semver="1.11.4" src="http://cdn.jsdelivr.net/semantic-ui/1.11.4/semantic.min.js"></script>
<script data-require="angular.js@1.3.15" data-semver="1.3.15" src="https://code.angularjs.org/1.3.15/angular.js"></script>
<script src="script.js"></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
var arr,
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body ng-controller="myController">
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body ng-controller="myController">
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body ng-controller="myController">
<p>Output 1: <span ng-bind="output1"></span></p>
### Keybase proof
I hereby claim:
* I am pklink on github.
* I am pklink (https://keybase.io/pklink) on keybase.
* I have a public key whose fingerprint is DDF3 793E E8DC 9A2D 4553 7AC5 0E73 A286 4825 C54D
To claim this, I am signing this object: