This file contains 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
au BufNewFile,BufRead *.cu set ft=cu | |
set number | |
syntax on | |
set mouse=a | |
set wildmode=list:longest " turn on wild mode huge list | |
set cursorline " highlight current line | |
set ruler | |
set showmatch | |
set showcmd " show the command being typed |
This file contains 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
# Built application files | |
*.apk | |
*.ap_ | |
# Files for the Dalvik VM | |
*.dex | |
# Java class files | |
*.class |
This file contains 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
#!/bin/sh | |
# Locale | |
sudo apt-get -y install language-pack-pt | |
# System update | |
sudo apt-get -y update | |
# System upgrade | |
sudo apt-get -y upgrade |
This file contains 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
#!/bin/sh | |
# Reset local Database | |
bundle exec rake db:reset | |
# Migrate local Database | |
bundle exec rake db:drop | |
# Create local Database | |
bundle exec rake db:create |
This file contains 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
source 'https://rubygems.org' | |
gem 'rails', '3.2.14' | |
gem 'bootstrap-sass', '2.1' | |
gem 'bcrypt-ruby', '3.0.1' | |
gem 'faker', '1.0.1' | |
gem 'will_paginate', '3.0.3' | |
gem 'bootstrap-will_paginate', '0.0.6' | |
gem 'jquery-rails', '2.0.2' |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<color name="white">#FFFFFF</color> | |
<color name="yellow">#FFFF00</color> | |
<color name="fuchsia">#FF00FF</color> | |
<color name="red">#FF0000</color> | |
<color name="silver">#C0C0C0</color> | |
<color name="gray">#808080</color> | |
<color name="olive">#808000</color> | |
<color name="purple">#800080</color> |
This file contains 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
apply plugin: 'android' | |
dependencies { | |
compile fileTree(dir: 'libs', include: ['*.jar']) | |
// Google Play Services | |
compile 'com.google.android.gms:play-services:4.4.52' | |
// Support Libraries | |
compile 'com.android.support:support-v4:20.+' |
This file contains 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
<!-- Developer should create a style --> | |
<style name="noAnimTheme" parent="android:Theme"> | |
<item name="android:windowAnimationStyle">@null</item> | |
</style> | |
<!-- Then in manifest set it as theme for activity or whole application. --> | |
<activity android:name=".ui.ArticlesActivity" android:theme="@style/noAnimTheme"> |
This file contains 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
package com.cesarferreira.asynctaskcallback; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.widget.Toast; | |
public class MainActivity extends Activity { | |
@Override |
This file contains 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 MainActivity extends ActionBarActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
String limitedResource = Utils.getInstance(getApplicationContext()).limitedResource; | |
Log.d("stuf", limitedResource); |
OlderNewer