- Add
folder/**
to.gitignore
- Run in the terminal
git rm -r --cached folder
- Commit and Push
- Remove
file
from.gitignore
- Run in the terminal
git rm -r --cached folder
- Run in the terminal
git add file
- Commit and Push
Spinner spinner = (Spinner)findViewById(R.id.mySpinner); | |
List<String> list = Arrays.asList(getResources().getStringArray(R.array.state)); | |
ArrayAdapter<String> spinnerAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, list); | |
spinnerAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); | |
spinner.setAdapter(spinnerAdapter); | |
spinnerAdapter.add("DELHI"); | |
spinnerAdapter.notifyDataSetChanged(); |
import javax.swing.*; | |
public class GUI { | |
public static void runGui() { | |
System.out.println("----------------------- Hello From GUI -----------------------"); | |
String strObjectMass = JOptionPane.showInputDialog(null, "Enter Object Mass"); | |
double objectMass = 0.0; | |
try { |
import glob | |
import os | |
import sys | |
from os import path | |
from os.path import expanduser | |
# CLion Activator v1.2 | |
# By congard | |
# https://github.com/congard | |
# http://congard.pp.ua/support-me |
package com.example; | |
import java.util.Stack; | |
public class Main { | |
public static final char OPENING_PARENTHESES = '('; | |
public static final char CLOSING_PARENTHESES = ')'; | |
public static void swap(char[] string, int i, int j) { |
import android.content.Context | |
import android.database.Cursor | |
import android.provider.MediaStore | |
import android.util.Log | |
class AudioDataSource { | |
companion object { | |
fun getAllAudioFromDevice(context: Context): List<AudioModel> { | |
val tempAudioList: MutableList<AudioModel> = ArrayList() |
import java.util.List; | |
import java.util.ArrayList; | |
import java.util.*; | |
class Main { | |
public static void reversePhrase(String s) { | |
} |
# remove specific file from git cache | |
git rm --cached filename | |
# remove all files from git cache | |
git rm -r --cached . | |
git add . | |
git commit -m ".gitignore is now working" |
import json | |
import os | |
import time | |
import webbrowser | |
import sys | |
import re | |
def handleWindows(extra_seconds): | |
print("OS : Windows") |
# -------- | |
# Hardware | |
# -------- | |
# Opcode - operational code | |
# Assebly mnemonic - abbreviation for an operation | |
# Instruction Code Format (IA-32) | |
# - Optional instruction prefix | |
# - Operational code |