Skip to main content

Posts

Showing posts from February, 2020

REACT NATIVE FONT INTEGRATION

REFERENCE URL   Download required fonts https://www.1001freefonts.com/gobold.font  1. Create an assets folder at the root of your project directory  2. Create a fonts folder within the assets folder and place your font files here  3. In your package.json specify where the custom fonts are located   "rnpm": {       "assets": [ "./assets/fonts/" ]  }  4. Next run the command react-native link

SEARCH TABLE DATA JAVA SCRIPT

———————————————————————— CDN https://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.js ———————————————————————— HTML  <input type="text" id="search" placeholder="Search"> ———————————————————————— JS (any column)  $("#search").on("keyup", function() {                 var value = $(this).val();                                  $("table tr").each(function(index) {                     if (index !== 0) {                         $row = $(this);                         var text = $row.text();                                          ...

Node Package Manager

INSTALL NODE REFERENCE SITE $ which node /usr/bin/node $ node --version v10.15.3 $ node > console.log ( 'Node is running' ) ; Node is running > .help .break Sometimes you get stuck, this gets you out .clear Alias for .break .editor Enter editor mode .exit Exit the repl .help Show repl options .load Load JS from a file into the REPL session .save Save all evaluated commands in this REPL session to a file > .exit $ which npm /usr/bin/npm $ npm --version 6.4.1 Updating npm npm install npm@latest -g npm install --global --production npm-windows-upgrade npm-windows-upgrade --npm-version latest Node Packaged Modules $ npm config list ; cli configs user-agent = "npm/6.9.0 node/v10.15.3 linux x64" ; userconfig /home/sitepoint/.npmrc prefix = "/home/sitepoint/.node_modules_global" ; node bin location = /usr/bin/nodejs ; cwd = /home/sitepoint ; HOME = /home/sitepoint ;...