Skip to content

Instantly share code, notes, and snippets.

View waliurjs's full-sized avatar

Waliur Rahman waliurjs

View GitHub Profile
@maiquealmeida
maiquealmeida / android-gradle-fix
Created May 31, 2019 12:58
Fixing React-Native android release error: duplicate resource
doLast {
def moveFunc = { resSuffix ->
File originalDir = file("${resourcesDir}/drawable-${resSuffix}")
if (originalDir.exists()) {
File destDir = file("${resourcesDir}/drawable-${resSuffix}-v4")
ant.move(file: originalDir, tofile: destDir)
}
}
moveFunc.curry("ldpi").call()
moveFunc.curry("mdpi").call()
@gaearon
gaearon / prepack-gentle-intro-1.md
Last active May 3, 2024 12:56
A Gentle Introduction to Prepack, Part 1

Note:

When this guide is more complete, the plan is to move it into Prepack documentation.
For now I put it out as a gist to gather initial feedback.

A Gentle Introduction to Prepack (Part 1)

If you're building JavaScript apps, you might already be familiar with some tools that compile JavaScript code to equivalent JavaScript code:

  • Babel lets you use newer JavaScript language features, and outputs equivalent code that targets older JavaScript engines.

Visual Studio Code shortcuts I use often

Navigation

Sidebar:

  • Cmd-Shift-F: search
  • Cmd-Shift-E: files

Navigating in current editor:

@threepointone
threepointone / 0 basics.md
Last active March 21, 2023 01:53
css-in-js

A series of posts on css-in-js

0. styles as objects

First, an exercise. Can we represent all of css with plain data? Let's try.

let redText = { color: 'red' };
import React, { useState } from 'react';
import { Grid, Input, Select } from 'react-spreadsheet-grid';
import set from 'lodash.set';
import users from './users.json';
const positions = [{
id: 1,
name: 'System Architect'
},{
id: 2,
@480
480 / gist:3b41f449686a089f34edb45d00672f28
Last active May 6, 2024 11:21
MacOS X + oh my zsh + powerline fonts + visual studio code terminal settings

MacOS X + oh my zsh + powerline fonts + visual studio code (vscode) terminal settings

Thank you everybody, Your comments makes it better

Install oh my zsh

http://ohmyz.sh/

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
@LearningMaterial
LearningMaterial / a) understandJS.md
Last active February 28, 2019 13:29
Notes of Javascript_The_Weird_Parts

Javascript Understanding The Weird Parts

@Mohamed3on
Mohamed3on / batchPrettier.md
Last active April 5, 2024 17:03
Run prettier on all JS files in a directory
  1. Install prettier
  2. Make a .prettierignore file, and add directories you'd like prettier to not format, for example: **/node_modules
  3. Run prettier --write "**/*.js" *Don't forget the quotes.
  4. Optional: if you want to format JSON/SCSS files too, replace js with json/scss.
@nuhil
nuhil / js.md
Last active November 20, 2021 18:06
Javascript Handbook
@nasirkhan
nasirkhan / bengali-webfont.md
Last active February 19, 2020 03:50
Embed Bengali/ Bangla Webfonts with Unicode Range
/* ========================================================================
    Bengali/ Bangla Webfont
    Embed Bengali Webfonts with Unicode Range
	Fonts are hosted at http://nasirkhn.com
 ========================================================================== */

@font-face {
	font-family: 'Siyam Rupali';
	font-style: normal;