- Save file without an extension
- Right click and select
Get info
- Click on the lock icon (set to unlocked)
- Open terminal and navigate to saved location on file
- execute
chmod 700 switch_git
- run the file :-)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
CustomPagerAdapter mCustomPagerAdapter; | |
ViewPager mViewPager; | |
mCustomPagerAdapter = new CustomPagerAdapter(Home.this, imageList); | |
mViewPager = (ViewPager) findViewById(R.id.pager); | |
CirclePageIndicator circlePageIndicator = (CirclePageIndicator) findViewById(R.id.titles); | |
if (mViewPager != null && circlePageIndicator != null) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Home extends AppCompatActivity{ | |
... | |
@Override | |
public boolean onCreateOptionsMenu(Menu menu) { | |
getMenuInflater().inflate(R.menu.menu_shop, menu); | |
for (int i = 0; i < menu.size(); i++) { | |
Drawable drawable = menu.getItem(i).getIcon(); | |
if (drawable != null) { | |
drawable.mutate(); | |
drawable.setColorFilter(getResources().getColor(R.color.white), PorterDuff.Mode.SRC_ATOP); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%{ | |
#include <sys/stat.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include <stdio.h> | |
int num_string = 0; | |
int num_char = 0; | |
%} | |
string [^\n\t ]+ | |
%% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%{ | |
int in_string_array(char*, char**, int); | |
char **words; | |
int words_count = 0; | |
%} | |
%% | |
/* Match all words */ | |
[^ \t\n]+ { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class data { | |
public static final String[] countryNames = { "Afghanistan", "Albania", | |
"Algeria", "Andorra", "Angola", "Antarctica", "Argentina", | |
"Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", | |
"Bahrain", "Bangladesh", "Belarus", "Belgium", "Belize", "Benin", | |
"Bhutan", "Bolivia", "Bosnia And Herzegovina", "Botswana", | |
"Brazil", "Brunei Darussalam", "Bulgaria", "Burkina Faso", | |
"Myanmar", "Burundi", "Cambodia", "Cameroon", "Canada", | |
"Cape Verde", "Central African Republic", "Chad", "Chile", "China", |