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
Shawn's Intellij Shortcuts | |
Symbols: | |
⌥ Option | |
⌘ Command | |
⇧ Shift | |
⌃ Control | |
← Left arrow | |
→ Right Arrow | |
↑ Up Arrow |
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
let plugins = getPlugins() | |
.flatMap(p => p) | |
// Group plugins by consumer_id or app_id | |
.reduce((obj, p) => { | |
let id = p.consumer_id || p.api_id; | |
if (id in obj) { | |
obj[id].push(p); | |
} else { | |
obj[id] = [p]; | |
} |
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
$("#newDeviceForm").submit(function(e) { | |
// Don't let the browser submit automatically | |
e.preventDefault(); | |
$.ajax({ | |
type: "POST", | |
url: "http://rad8prod-env.paxsdtgzng.us-east-1.elasticbeanstalk.com/devices", | |
headers: { | |
Authorization: "dev_env_pw" | |
}, | |
data: this.serialize(), |
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
class AirBookingService { | |
private final Database db; | |
private final BookingService bookings; | |
private static final Map<String, User> userCache = new HashMap<>(); | |
public AirBookingService() { | |
db = new Database(); | |
bookings = BookingServiceFactory.getService(); | |
} |
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
export function renderComponent(component, query, variables) { | |
let {loading, error, data} = useQuery(query, {variables}); | |
if (loading) { | |
return null; | |
} | |
if (error) { | |
console.log(error); | |
} |
OlderNewer