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
| _log(json_decode(stripslashes_deep($ajax_data['formStyleSettings'])), true); |
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
| Allow ALL cross origin requests to WordPress REST API | |
| https://github.com/Shelob9/rest-all-cors | |
| WordPress theme using Rest API and Vue.js | |
| https://github.com/rtCamp/VueTheme | |
| WordPress Post from Front End using REST API and Vue.js | |
| http://jimfrenette.com/2017/01/post-from-front-end-wp-api-vuejs/ | |
| An offline-first SPA using Vue.js, the WordPress REST API and Progressive Web Apps |
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
| zip -r -X folder_name.zip folder_name/ |
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
| # From Chrome v63 or above it redirects all the .dev domain in localhost to https and it causes trouble for your local development | |
| here is what i've done for my wordpress development with mamp, | |
| i) first i've change the domain name .dev to .test https://cl.ly/2g0z3H3m3F2d | |
| ii) then i've also change my wordpress installed folder name from .dev to .test https://cl.ly/291d31043K3e | |
| iii) now you have to open your hosts file and there you will find your wordpress site url change the .dev to .test https://cl.ly/213o1O3h4305 | |
| iv) finally in your wordpress site database from the database wp_options table cahnge the site url and home url to .test https://cl.ly/3k3v3X0C2K26 | |
| in case of multisite make sure your wp_site, wp_blogs url also changed to .test domain |
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 db = firebase.firestore(); | |
| var content = require("./sourceData.json"); | |
| content && | |
| Object.keys(content).forEach(contentKey => { | |
| const nestedContent = content[contentKey]; | |
| if (typeof nestedContent === "object") { | |
| Object.keys(nestedContent).forEach(docTitle => { | |
| firebase | |
| .firestore() |
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
| foo() { | |
| echo "Parameter #1 is $1" #and this is the argument value | |
| echo "$2" | |
| } | |
| foo "hello" "what" #this are the argument you are passing to foo function |
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
| function copyFiles() { | |
| arr=("$@") | |
| for i in "${arr[@]}"; | |
| do | |
| echo "$i" | |
| done | |
| } | |
| array=("one" "two" "three") |
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
| package main | |
| import ( | |
| "bytes" | |
| "log" | |
| "context" | |
| "fmt" | |
| "net/http" | |
| "time" | |
| "encoding/json" |
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
| while read C; do | |
| text=${C:1:1} | |
| text=$text${C:6:1} | |
| echo $text | |
| done | |
| or | |
| while read C; do | |
| cut -c 2,7 <<< ${C} |
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
| read n | |
| text="" | |
| for ((i=0; i<n; i++)) | |
| do | |
| temp="" | |
| read input | |
| temp=${input:2:1} | |
| text=$text$temp | |
| done | |
| for ((i=0; i<n; i++)) |