| HEADER | EMPHASIS | HORIZONTAL_LINE | LIST | TABLE
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
/** | |
* Decode a URL-encoded string. | |
*/ | |
String urlDecode(String str) | |
{ | |
String encodedString = ""; | |
char c; | |
char code0; | |
char code1; | |
for (int i = 0; i < str.length(); i++) |
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 bash | |
########################################################################## | |
# Shellscript : Backup and update WordPress using wp-cli | |
# Author : Grant Norwood <grantnorwood.com> | |
# Original Author : Paco Orozco <[email protected]> | |
# Requires : wp-cli | |
########################################################################## | |
# Changelog | |
# 20220430: 2.0 | |
# Adds a user-specified option for forcing backup & updates |
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
# Print the green/red arrow. | |
PROMPT="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )" | |
# Add the current directory & git prompt info | |
# | |
# This checks whether the path is longer then 5 elements, and in that case prints the first element (%-1~), | |
# some dots (/…/) and the last 3 elements. It is not exactly the same as paths that are not in your home | |
# directory, will also have the first element at the beginning, while bash just prints dots in that case: | |
# | |
# "%(5~|%-1~/…/%3~|%4~)" |
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
# ... | |
type VacationRental { | |
id: ID! | |
title: String # removed the ! | |
description: String # removed the ! | |
owner: Owner! | |
roomCount: Int # removed the ! | |
address: Address # removed the ! | |
geolocation: GeoLocation # removed the ! |
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
type Query { | |
vacationRentalById(id: $id) : VacationRental | |
} | |
type VacationRental { | |
id: ID! | |
title: String | |
description: String | |
owner: Owner! | |
roomCount: Int |
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
# ... | |
type Owner { | |
name: String! | |
email: String! | |
phone: String! | |
twitterHandle: String # removed the ! | |
inboxNotifications: [Notification] | |
} | |
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
# ... | |
type Owner { | |
name: String! | |
email: String! | |
phone: String! | |
twitterHandle: String! | |
inboxNotifications: [Notification] # removed the ! | |
} | |
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
### Initial schema | |
type Query { | |
vacationRentalById(id: $id) : VacationRental | |
} | |
type VacationRental { | |
id: ID! | |
title: String! | |
description: String! |
#Blur The Lines Links from our SXSW Presentation
###Challenges http://codepen.io/mutewinter/ ####Animations Challenge: http://codepen.io/mutewinter/pen/fKcyr
Answer: http://codepen.io/mutewinter/pen/pcraL ####Image Upload
NewerOlder