Skip to content

Instantly share code, notes, and snippets.

View KOWLOR's full-sized avatar

Malik Dellidj KOWLOR

  • Freelance
  • Lille, France
View GitHub Profile
@yratof
yratof / map.php
Created January 18, 2016 14:26
ACF Google map with styles
<?php $location = get_field('location'); if( !empty($location) ): ?>
<div class="acf-map" style="width: 100%; height: 100%; position: absolute; left: 0; top: 0;">
<div class="marker" data-lat="<?php echo $location['lat']; ?>" data-lng="<?php echo $location['lng']; ?>"></div>
</div>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
<script type="text/javascript">
(function(e){function t(t){
var i=t.find(".marker");
@yovany-lg
yovany-lg / expo-typescript-eslint-prettier.md
Last active May 19, 2025 05:04
Setting up React Navite: Expo + Typescript + Eslint (Airbnb) + Prettier

Steps to get started with Expo, Typescript, ESLint and Prettier

The first step is to use the Expo CLI to initialize the project. If you don't have the latest version of the Expo CLI tool, (or you don't have it installed) run npm install -g expo-cli.

Now run the following commands in the same order:

  • expo init my-app -t expo-template-blank-typescript
  • npx install-peerdeps --dev eslint-config-airbnb
  • npm i --save-dev @typescript-eslint/parser @typescript-eslint/eslint-plugin
  • npm i --save-dev prettier eslint-config-prettier eslint-plugin-prettier

Create or edit the file .eslintrc.json with the following content: