| 更新: | 2025-10-15 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 2025.3 |
| URL: | https://voluntas.github.io/ |
typo などは https://x.com/voluntas までご連絡ください。
| 更新: | 2025-10-15 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 2025.3 |
| URL: | https://voluntas.github.io/ |
typo などは https://x.com/voluntas までご連絡ください。
| var async = require('async'); | |
| Project.afterCreate = function(done) { | |
| var self = this; | |
| function createRelation(rel, next, name) { | |
| self[name].create(rel, next); | |
| }; | |
| objMapAsync(this.__cachedRelations, createRelation, done); |
| var loopback = require('loopback'); | |
| // HINT(s): | |
| // Getting the app object: http://docs.strongloop.com/display/public/LB/Working+with+LoopBack+objects | |
| // From a model script: http://docs.strongloop.com/display/public/LB/Working+with+LoopBack+objects#WorkingwithLoopBackobjects-Fromamodelscript | |
| module.exports = function(StoreModel) { | |
| StoreModel.prototype.instanceRemoteMethodSignature = function(cb) { | |
| console.log('print this instance object: ', this); | |
| cb(null); | |
| }; |
| <?php | |
| add_filter( 'gravitview_no_entries_text', 'add_form_to_gravitview_no_entries_text', 10, 2 ); | |
| /** | |
| * Modify the text displayed when there are no entries to show a Gravity Forms form | |
| * | |
| * @param string $output The existing "No Entries" text | |
| * @param boolean $is_search Is the current page a search result, or just a multiple entries screen? | |
| */ |
| @startuml | |
| ' uncomment the line below if you're using computer with a retina display | |
| ' skinparam dpi 300 | |
| !define Table(name,desc) class name as "desc" << (T,#FFAAAA) >> | |
| ' we use bold for primary key | |
| ' green color for unique | |
| ' and underscore for not_null | |
| !define primary_key(x) <b>x</b> | |
| !define unique(x) <color:green>x</color> | |
| !define not_null(x) <u>x</u> |
| var http = require('http'); | |
| var https = require('https'); | |
| var util = require('util'); | |
| exports.handler = function(event, context, callback) { | |
| console.log(util.inspect(event, 3)); | |
| console.log(util.inspect(context, 3)); | |
| // setup request options and parameters | |
| var options = { |
| { | |
| "sample-analyze": { | |
| "order": 0, | |
| "template": "sample-analyze-*", | |
| "settings": { | |
| "index": { | |
| "analysis": { | |
| "filter": { | |
| "greek_lowercase_filter": { | |
| "type": "lowercase", |
| export function flatMap<T, U>(array: T[], callbackfn: (value: T, index: number, array: T[]) => U[]): U[] { | |
| return Array.prototype.concat(...array.map(callbackfn)); | |
| } |