is_archived=*
: Returns a list of both soft-deleted and non-soft-deleted recordsis_archived=true
: Returns a list of only soft-deleted recordsis_archived=false
: Returns a list of only non-soft-deleted records- absent
is_archived
: Returns a list of only non-soft-deleted records
This file contains hidden or 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 run_cmd = function(cmd, args) { | |
var promise = require('bluebird'); | |
return new promise(function (resolve, reject) { | |
var spawn = require('child_process').spawn; | |
var child = spawn(cmd, args); | |
var resp = ""; | |
child.stdout.on('data', function (buffer) { resp += buffer.toString() }); | |
//child.stdout.on('end', function(){ resolve(resp); }); | |
child.on('close', function(exitCode){ resolve(resp); }); // < This might be more approperate |
This file contains hidden or 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 lodash = require('lodash'); | |
var _seenObjects = []; | |
var recurseKeys = function(name, obj){ | |
var duplicate; | |
if (( duplicate = lodash.find(_seenObjects, function(seen){ | |
return seen.obj === obj; | |
}) )) { |
This file contains hidden or 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
<code><pre> | |
{% set root_val = varilable_to_debug %} | |
root_val: {{ root_val }} | |
{{ root_val|length }} | |
{% for key, value in root_val %} | |
root_val.{{ key }} => {{ value }} | |
{% for key2, value2 in value %} | |
root_val.{{ key }}.{{ key2 }} :: {{ value2 }} | |
{% for key3, value3 in value2 %} |
This file contains hidden or 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
# Suggested packages for a MacBook Pro | |
# Created Sep 2017 for a MacBook Pro Late 2013 | |
lsb_release -a | |
# -> Description: Ubuntu 17.04 | |
# -> Codename: zesty | |
# Read your model | |
sudo dmidecode -s system-product-name | |
# -> MacBookPro11,3 |
Based on https://stackoverflow.com/a/31632215/761771
const reduceOp = function(args, reducer){
args = Array.from(args);
args.pop(); // => options
var first = args.shift();
return args.reduce(reducer, first);
};
This file contains hidden or 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
#!/usr/bin/env node | |
/* eslint-disable no-alert */ | |
/* eslint-disable no-console */ | |
const allParams = process.argv.slice(2).join(' '); | |
const relativeDir = require('path').resolve(__dirname, '../some/path'); | |
const thisScript = require('path').basename(__filename); |
There is no clear standard (or this is a "yet another"?) for formatting query string parameters for various applications in an API.
&attribute[ATTRIBUTE-NAME]=ATTRIBUTE-VALUE
- Operators: greater than, greater than or equal, less than, less than or equal, in, etc...
Moved to Steam-Deck-Notes