/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
🧘♂️
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
[ngModel]="range" (ngModelChange)="saverange($event)" |
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
// Parameters obj- | |
let params: URLSearchParams = new URLSearchParams(); | |
params.set('appid', StaticSettings.API_KEY); | |
params.set('cnt', days.toString()); | |
//Http request- | |
return this.http.get(StaticSettings.BASE_URL, { | |
search: params | |
}).subscribe( | |
(response) => this.onGetForecastResult(response.json()), |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
var Article = require('../../../models/article');
Those suck for maintenance and they're ugly.
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
/** | |
* Vue-disqus | |
* @author Surmon.me | |
*/ | |
const DisqusComponent = require('./disqus.vue') | |
const disqus = { | |
install: function(Vue) { | |
Vue.component('disqus-box', DisqusComponent) |
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
"use strict" | |
let BezierEasing = require("bezier-easing") | |
let _ = { | |
$(selector) { | |
return document.querySelector(selector) | |
}, | |
on(element, events, handler) { | |
if (!(events instanceof Array)) { |
- scripting-photos-for-macos-with-javascript
- MacAutomationScriptingGuide
- run script on mac & copy result data
Export data & Node.js transform
- finder > pictures > Photos Library (context menu) > Show Package Contents > database > Photos.sqlite
- sqlite open Photos.sqlite
- find table & export data