Javascript+java8 nashorn contains a javascript AST parser. See // http://stackoverflow.com/questions/29154309/nashorn-parser-api-on-jdk-8
function x(n) {var a=[];for(var i=0;i< n;i++) { a.push(i); }} x(1000);#run
Javascript+java8 nashorn contains a javascript AST parser. See // http://stackoverflow.com/questions/29154309/nashorn-parser-api-on-jdk-8
function x(n) {var a=[];for(var i=0;i< n;i++) { a.push(i); }} x(1000);#run
| ## IPv6 Tests | |
| http://[::ffff:169.254.169.254] | |
| http://[0:0:0:0:0:ffff:169.254.169.254] | |
| ## AWS | |
| # Amazon Web Services (No Header Required) | |
| # from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories | |
| http://169.254.169.254/latest/meta-data/iam/security-credentials/dummy | |
| http://169.254.169.254/latest/user-data | |
| http://169.254.169.254/latest/user-data/iam/security-credentials/[ROLE NAME] |
| #!/bin/bash | |
| set -ue | |
| #set -x | |
| cd $(dirname $0) | |
| . environ.sh | |
| cd "$VIMREPODIR" | |
| [ "$CFLAGS" ] && export CFLAGS |
| require('./setup')(function(angular){ | |
| angular.module("app", []); | |
| var inj = angular.injector(["ng", "app"]); | |
| var scope = { | |
| person: {name: "foo", "age": 20} | |
| }; | |
| var locals = { | |
| where: "anywhere" | |
| }; |
| package com.example.controller.api; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.util.Date; | |
| import java.util.HashMap; | |
| import java.util.List; | |
| import java.util.Map; | |
| import java.util.Properties; |
#まず見るべき
以下のURLは、常に更新されているコンテンツです。
| // Amazonの注文履歴をTSV形式で出力するスクリプト | |
| // | |
| // 2015-01-01 時点での DOM 構造に対応, GoogleCrome, Opera でテスト済。 | |
| // formatEntry関数を書き換えれば自由な書式で出力できます。 | |
| // | |
| // 参考: | |
| // - Amazonの注文履歴をCSV形式にして出力するスクリプト | |
| // https://gist.github.com/arcatdmz/8500521 | |
| // - Amazon で使った金額の合計を出す奴 (2014 年バージョン) | |
| // https://gist.github.com/polamjag/866a8af775c44b3c1a6d |
JEP-123 で利用時に指定する方法が提案されてJava8で使えるようになったらしい。Linuxだと標準で /dev/random を使うからエントロピーが全部消費されてる状態だとブロックされてた。
| % at_least//2 is like at_least//3 but ignores the specific matches found. | |
| :- meta_predicate at_least(+,3,*,*). | |
| at_least(N,Goal) --> | |
| at_least(N,Goal,_). | |
| % at_least(N,Goal,Matches) consumes at least N matches of Goal. | |
| % after that, it consumes as much as possible. | |
| :- meta_predicate at_least(+,3,?,*,*). | |
| at_least(N0,Goal,[X|Xs]) --> |
| # -*- coding: utf-8 -*- | |
| """ | |
| Python Script to download the Chrome Extensions (CRX) file directly from the google chrome web store. | |
| Referred from http://chrome-extension-downloader.com/how-does-it-work.php | |
| """ | |
| from __future__ import division | |
| import argparse | |
| import requests |