List of useful npx (NPM Package Runner) commands.
Using NPX we can execute/run node binaries without the need to install it locally or globally.
import React from 'react'; | |
import { useIntersectionObserver } from './useIntersectionObserver'; // Import your custom hook | |
function MyComponent() { | |
const { observedRef, inView } = useIntersectionObserver(); | |
return ( | |
<div | |
className={`flex-1 parent-flex flex ${inView ? 'group inview' : ''}`} | |
ref={observedRef} |
{ | |
"1_Crate_To_Open": "1 Core to Open", | |
"See_All": "See All", | |
"A_to_Z": "A to Z", | |
"A_Xhr_Power": "- a {0}hr +2.5% Power", | |
"A_Xhr_Turbo": "- a {0}hr +5% Turbo", | |
"About": "About", | |
"About_GameTitleX": "About {0}", | |
"About_Earning": "About Earning", | |
"About_Resell": "About Resell", |
List of useful npx (NPM Package Runner) commands.
Using NPX we can execute/run node binaries without the need to install it locally or globally.
# ~/.config/starship.toml | |
[character] | |
use_symbol_for_status = true # Show "✖" when the command faild | |
[hostname] | |
ssh_only = false | |
prefix = "❮ " | |
suffix = "❯" | |
style = "bold dimmed white" |
#!/bin/bash | |
curl -XPOST 'http://localhost:9200/blog/posts/_search' -d '{ | |
"query": { | |
"filtered": { | |
"query": { | |
"query_string": { | |
"query":"php zend framework", | |
"default_operator": "OR", | |
"fields": ["title", "content"] | |
} |
RecipesData = { | |
"chilis-chicken-taco": { | |
"title": "Chilis Chicken Tacos", | |
"highlighted": true, | |
"excerpt": "When I’ve got too many cheese bits on hand, it's now fromage fort to the rescue", | |
"source": { | |
"name": "Chilis", | |
"url": "http://chilis.com/" | |
}, | |
"average preperation time": "15 min", |
Clock Angle Problem | |
BY SJ · FEBRUARY 20, 2015 | |
Objective: Find the Angle between hour hand and minute hand at the given time. | |
Example: | |
Time : 12:45 | |
Input : hour = 12, Minute = 45 | |
Output : 112.5 |
1 | |
down vote | |
It's interesting. But I've got an opposite result with the following codes which are simplified from my current projects: | |
// test a simple array_map in the real world. | |
function test_array_map($data){ | |
return array_map(function($row){ | |
return array( | |
'productId' => $row['id'] + 1, |
Requirements | |
Installable on both iOS and Android | |
Shopping Cart | |
Reminders | |
CMS page for wordpress to push out messages to app | |
Social signon | |
Link to write review |
1) unzip package to project folder | |
2) virtualenv . | |
3) source bin/activate | |
4) pip install pelican markdown | |
5) cd src | |
6) git clone https://github.com/getpelican/pelican-plugins.git | |
7) Add PLUGIN_PATHS = ['pelican-plugins'] and PLUGINS = ['assets'] to pelicanconf.py | |
8) cd .. | |
9) cd theme | |
10) ./setup.sh |