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
javascript:(function() { | |
$scope = angular.element(document.querySelector('[ng-view], [ng-controller]')).scope(); | |
console.log('$scope', $scope); | |
})(); |
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
data:application/javascript;base64,d2luZG93LmFsZXJ0KCJIZWxsbyBXb3JsZCEiKTs= |
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
(function(){ | |
var form = {a: 123, b: 456, c: {d: 789}}; | |
var d = window.open(null, "_blank").document; | |
d.write('<textarea id="value" style="width:100%;height:90%;"></textarea>'); | |
d.write('<br><input type="button" onclick="javascript:opener.callback()" value="Changer">'); | |
var t = d.querySelector('#value'); | |
t.value = JSON.stringify(form, null, 2); | |
window.callback = function() { | |
form = JSON.parse(t.value); | |
window.alert(JSON.stringify(form, null, 2)); |
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 'dart:convert'; | |
import 'dart:html'; | |
import 'dart:math'; | |
import 'dart:svg' as svg; | |
main() { | |
HttpRequest.getString('svg-datas.json').then(JSON.decode).then(calculateGravity); | |
} | |
calculateGravity(Map<String, Map> paths) { |
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
include('https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.7.0/underscore-min.js'); | |
window.alert('Yeah!!!'); |
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 'dart:html'; | |
import 'dart:isolate'; | |
SendPort reverser; | |
void main() { | |
reverser = spawnUri("https://gist.github.com/ggirou/6543763/raw/5be58e6aa28096e1e0f088112a59cbd2baab7719/test.dart"); | |
// reverser = spawnUri("test.dart"); | |
query('#button').onClick.listen(test); |
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 tweets = [ | |
{ | |
"created_at":"Wed Apr 24 16:27:38 +0000 2013", | |
"id":327096504772874240, | |
"id_str":"327096504772874240", | |
"text":"Passez la vitesse sup\u00e9rieure avec le data bindings dans WebUI #dartlang #webui http:\/\/t.co\/C3BHfkMcg1", | |
"source":"TweetDeck", | |
"truncated":false, | |
"in_reply_to_status_id":null, | |
"in_reply_to_status_id_str":null, |
NewerOlder