Skip to content

Instantly share code, notes, and snippets.

@pklink
pklink / designer.html
Created January 26, 2015 20:26
designer
<link rel="import" href="../paper-input/paper-input.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
<!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">
@pklink
pklink / index.html
Created March 3, 2015 16:08
JS Bin angularjs: $watch on an array; differences between `[].push(val)` and `= [].concat([val])` // source http://jsbin.com/hikake
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<meta name="description" content="angularjs: $watch on an array; differences between `[].push(val)` and `= [].concat([val])`">
<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">
### 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:
<!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>
<!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>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
var arr,
@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>
@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>