Skip to content

Instantly share code, notes, and snippets.

View camtonguyen's full-sized avatar
🔥
Focusing

Cam To camtonguyen

🔥
Focusing
View GitHub Profile
@camtonguyen
camtonguyen / equalheightslick.js
Created December 27, 2019 17:33 — forked from proweb/equalheightslick.js
Slick carousel equal height slides
$(window).load(function() {
$('.slides').on('setPosition', function () {
$(this).find('.slick-slide').height('auto');
var slickTrack = $(this).find('.slick-track');
var slickTrackHeight = $(slickTrack).height();
$(this).find('.slick-slide').css('height', slickTrackHeight + 'px');
});
})
@camtonguyen
camtonguyen / master-javascript-interview.md
Created October 19, 2019 08:08 — forked from Geoff-Ford/master-javascript-interview.md
Eric Elliott's Master the JavaScript Interview Series
@camtonguyen
camtonguyen / master-javascript-interview.md
Created October 19, 2019 08:08 — forked from Geoff-Ford/master-javascript-interview.md
Eric Elliott's Master the JavaScript Interview Series
@camtonguyen
camtonguyen / react-native-notes.md
Created June 29, 2018 03:31
Things I learned the hard way using React Native

Things I learned the hard way using React Native

Set up your environment carefully: It's important to have one canonical source of truth per environment, per platform. (i.e. iOS Development, iOS Testflight, iOS Production, ditto Android.) Every time you build, your config should propagate values from one input source (per platform) to either Java/JavaScript or Objective-C/JavaScript. Here's what we did for Android and here's what we did for iOS. I don't doubt that you can do better. Please do better. But you can't say that we didn't have one canonical source of truth that worked very simply and effectively throughout the development process.

Don't wait until the end to develop Android and iOS concurrently: Even if you're not actively focusing on both platforms, don't assume that "RN is cross platform… we can develop iOS and flip the Android switch when we'r

@camtonguyen
camtonguyen / api.js
Created May 7, 2018 23:57 — forked from chengcyber/api.js
window.fetch method on modern browsers
// lib/api.js
class Api {
static headers() {
return {
'Accept': 'application/json',
'Content-Type': 'application/json',
'dataType': 'json',
}
}