Posts

Showing posts from August, 2007

Remove Space Between Columns In Bootstrap 4 Code Example

Example 1: bootstrap col no gaps <div class= "row no-gutters" > </div> Example 2: Remove space between columns in Bootstrap 4 <div class= "row" > <div class= "col-md-2 padding-0" > //stuff here for this column </div> <div class= "col-md-10 padding-0" > //stuff here for columns </div> </div>

Adding Git-Bash To The New Windows Terminal

Image
Answer : Overview Open settings with ctrl + , You'll want to append one of the profiles options below (depending on what version of git you have installed) to the "list": portion of the settings.json file { "$schema": "https://aka.ms/terminal-profiles-schema", "defaultProfile": "{00000000-0000-0000-ba54-000000000001}", "profiles": { "defaults": { // Put settings here that you want to apply to all profiles }, "list": [ <put one of the configuration below right here> ] } } Profile options Uncomment correct paths for commandline and icon if you are using: Git for Windows in %PROGRAMFILE% Git for Windows in %USERPROFILE% If you're using scoop { "guid": "{00000000-0000-0000-ba54-000000000002}", "commandline": "%PROGRAMFILES%/git/usr/bin/bash.ex

Can't Build Release APK For Flutter

Answer : Turns out, the best way to handle this is to make the following change in android/app/build.gradle : android { compileSdkVersion 26 buildToolsVersion '26.0.3' lintOptions { disable 'InvalidPackage' } defaultConfig { applicationId "com.example.app" minSdkVersion 16 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } signingConfigs { release { keyAlias keystoreProperties['keyAlias'] keyPassword keystoreProperties['keyPassword'] storeFile file(keystoreProperties['storeFile']) storePassword keystoreProperties['storePassword'] } } // This is the main section that I've updated // to get the release APK to build buildTypes { release { profi

Deegate Function Code Example

Example 1: what are delegates and how to use them c# public delegate void MyDelegate ( string text ) ; Example 2: what are delegates and how to use them c# myDelegate d1 = new myDelegate ( Method1 ) ; myDelegate d2 = new myDelegate ( Method2 ) ; myDelegate multicastDelegate = ( myDelegate ) Delegate . Combine ( d1 , d2 ) ; multicastDelegate . Invoke ( ) ;

Fas Facebook Code Example

Example 1: fa fa-facebook < i class = "fa fa-facebook-square" aria - hidden = "true" > < / i > Example 2: font awesome facebook Font Awesome 5 : Letter F : < i class = "fab fa-facebook-f" > < / i > Round : < i class = "fab fa-facebook" > < / i > Square : < i class = "fab fa-facebook-square" > < / i > Messenger : < i class = "fab fa-facebook-messenger" > < / i >

Create A Rounded Button / Button With Border-radius In Flutter

Image
Answer : 1. Solution Summary You can use shape for FlatButton and RaisedButton . 2. Rounded Button shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(18.0), side: BorderSide(color: Colors.red) ), Square Button shape: RoundedRectangleBorder( borderRadius: BorderRadius.zero, side: BorderSide(color: Colors.red) ), Complete Example Row( mainAxisAlignment: MainAxisAlignment.end, children: <Widget>[ FlatButton( shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(18.0), side: BorderSide(color: Colors.red)), color: Colors.white, textColor: Colors.red, padding: EdgeInsets.all(8.0), onPressed: () {}, child: Text( "Add to Cart".toUpperCase(), style: TextStyle( fontSize: 14.0, ), ), ), SizedBox(width: 10), RaisedButton( shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(18.0), side: BorderSi

Count Number Of Digits In A Number Javascript Code Example

Example 1: digit count in javascript function digitCount ( num ) { if ( num === 0 ) return 1 return Math . floor ( Math . log10 ( Math . abs ( num ) ) ) + 1 } Example 2: javascript count digits var length = ( number + '' ) . replace ( '.' , '' ) . replace ( '-' , '' ) . length ; // for numbers that can be floats or negatives Example 3: get number right of the dot length javascript var x = 23.453453453 ; x . countDecimals ( ) ; // 9 var countDecimals = function ( value ) { if ( Math . floor ( value ) === value ) return 0 ; return value . toString ( ) . split ( "." ) [ 1 ] . length || 0 ; }

78f To C Code Example

Example: 14 f to c 14°F = -10°C

Yt Ot Mp3 Code Example

Example 1: youtube mp3 converter You can use WebTools , it's an addon that gather the most useful and basic tools such as a synonym dictionary , a dictionary , a translator , a youtube convertor , a speedtest and many others ( there are ten of them ) . You can access them in two clics , without having to open a new tab and without having to search for them ! - Chrome Link : https : //chrome.google.com/webstore/detail/webtools/ejnboneedfadhjddmbckhflmpnlcomge/ Firefox link : https : //addons.mozilla.org/fr/firefox/addon/webtools/ Example 2: yt to mp3 Youtube - DL works great . Download from https : //youtube-dl.org/. To use, type youtube-dl <url> --audio-format mp3 Example 3: youtube download mp3 I use https : //github.com/ytdl-org/youtube-dl/ as a Python CLI tool to download videos

Add Component Unity Code Example

Example 1: Add component object to gameobject unity //to add a new ridgidbody gameobject . AddComponent < Rigidbody > ( ) ; //to add a new meshCollider gameobject . AddComponent < MeshCollider > ( ) ; //Original answer by MakerBenjammin6, cleanup by me. Example 2: unity add component //Use the AddComponent<T>() Method to add a component to your gameobject GameObject gameObject ; gameObject . AddComponent < BoxCollider > ( ) ; //Component has to be an actual Unity component Example 3: On add component unity void Reset ( ) { //Your code here } Example 4: how to add a componet to a gameobject throgh code unity //This uses C# and unity //to add a ridgidbody gameobject . addComponet < ridgidbody > ( ) ; //to add a meshCollider gameobject . addComponet < MeshCollider > ( ) ; //check out my profile

Void * In C Meaning Code Example

Example 1: what is void in c FUNCTION DECLARATION when void is used as a function return type , it indicates that the function does not return a value . POINTER DECLERATION When void appears in a pointer declaration , it specifies that the pointer is universal . FUNCTION PARAMETER ( IN C ONLY ) When used in a function ' s parameter list , void indicates that the function takes no parameters . Example 2: void c programming FUNCTION DECLARATION when void is used as a function return type , it indicates that the function does not return a value . POINTER DECLERATION When void appears in a pointer declaration , it specifies that the pointer is universal .

90 Cm In Feet Code Example

Example: cm to foot 1 cm = 0.032808399 foot

Character Count Online Code Example

Example: charcount //Calculate the times a character occurs public static int charCount ( String userInput ) { //convert the string to a char array char [ ] StringArray = userInput . toCharArray ( ) ; //hashmap that stores the characters. key will be the time it occures HashMap < Character , Integer > charCount = new HashMap < Character , Integer > ( ) ;

Resize Pic Inside Of A Div Code Example

Example: css image fit in div with aspect ratio img { width : 100 % ; height : 100 % ; object-fit : contain ; }