#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6
Paragraph
#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6
Paragraph
| Verifying that +peysal is my blockchain ID. https://onename.com/peysal |
| function where(arr, num) { | |
| // Find my place in this sorted array. | |
| var sortedAsc = arr.sort(function(before, after){ | |
| return before - after; | |
| }); | |
| console.log('| sortedAsc:' + sortedAsc); | |
| var position = sortedAsc.reduce(function(before, after){ | |
| return "ayam"; | |
| }); | |
| console.log('| ayam:' + position); |
| function destroyer(arr) { | |
| var args = new Array(arguments.length); | |
| for(i=0; i<args.length;i++){ | |
| args[i] = arguments[i]; | |
| } | |
| console.log('| args[0]:' + args[0]); | |
| var result = args[0].filter(function(element){ | |
| for(o=1; o<args.length;o++){ | |
| console.log('| making sure element:' + element + ' is not:' + args[o]); |
| <mapping path="/B49C/FASE1">/B49C/FASE1</mapping> | |
| <mapping path="/B49C/FASE2">/B49C/FASE2</mapping> |
| Map objective: build up key | |
| Key query: use browser to query. | |
| example http://127.0.0.1:5984/cms21_sample_file/_design/sample_file/_view/account?key=[%22C002%22,%222001%22] | |
| This example query multiple key value | |
| Tips 1: key shuoldnt contain any empty space infront or at back. Use trim. Ease the process building the URL request | |
| Using Curl: http://stackoverflow.com/questions/8333920/passing-a-url-with-brackets-to-curl | |
| example curl -X GET http://127.0.0.1:5984/cms21_sample_file/_design/sample_file/_view/account?key=[%22C002%22,%222001%22] -g |
| <div class="container"> | |
| <div class="row clearfix"> | |
| <div class="col-md-12 column"> | |
| <div class="page-header"> | |
| <h1> | |
| Example page header <small>Subtext for header</small> | |
| </h1> | |
| </div> | |
| <ul class="nav nav-tabs"> | |
| <li class="active"> |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| def shell = new GroovyShell() | |
| def file = new File("SqlGroovy.groovy") | |
| shell.evaluate(file) |
| import groovy.sql.Sql | |
| String db_server = "bun" | |
| String db_database = "bun" | |
| String db_port = "1433" | |
| String db_user = "bun" | |
| String db_password = "bun" | |
| String connectionUrl = "jdbc:sqlserver://" + db_server + ":" + db_port + | |
| ";database=" + db_database + | |
| ";user=" + db_user + |