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
[root@vagrant-centos65 log]# service mysqld stop | |
[root@vagrant-centos65 log]# mysqld_safe --skip-grant-tables & | |
mysql> use mysql; | |
mysql> UPDATE mysql.user | |
-> SET authentication_string = PASSWORD('新パスワード'), password_expired = 'N' | |
-> WHERE User = 'root' AND Host = 'localhost'; | |
mysql> FLUSH PRIVILEGES; |
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
config.vm.provider "virtualbox" do |vb| | |
# # Display the VirtualBox GUI when booting the machine | |
# vb.gui = true | |
# | |
# # Customize the amount of memory on the VM: | |
vb.memory = "2048" | |
end | |
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
[root@vagrant-centos65 vagrant]# composer create-project symfony/framework-standard-edition my_project_name "2.8.3" | |
[RuntimeException] | |
Could not delete /vagrant/my_project_name/vendor/symfony/symfony/6601b6eabe2135f7d417614c11d56528: date_default_timezone_get(): It is not safe to rely on the syste | |
m's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and y | |
ou are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to sele | |
ct your timezone. | |
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
C:\D\selenium>java -jar selenium-server-standalone-2.52.0.jar -role hub -port 4445 | |
C:\D\selenium>java -jar selenium-server-standalone-2.52.0.jar -role node -hub http://localhost:4445/grid/register |
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
java -jar selenium-server-standalone-2.52.0.jar -role hub |
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 Main2Activity extends AppCompatActivity implements Tab1Fragment.OnFragmentInteractionListener, Tab2Fragment.OnFragmentInteractionListener { | |
/** | |
* The {@link android.support.v4.view.PagerAdapter} that will provide | |
* fragments for each of the sections. We use a | |
* {@link FragmentPagerAdapter} derivative, which will keep every | |
* loaded fragment in memory. If this becomes too memory intensive, it | |
* may be best to switch to a | |
* {@link android.support.v4.app.FragmentStatePagerAdapter}. | |
*/ |
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 AppCompatActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
//QiitaApiの使用 | |
Retrofit retrofit = new Retrofit.Builder() |
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
#数値計算ライブラリインポート | |
import numpy | |
#データ分析ライブラリからSeriesとDataFrameをインポート | |
from pandas import Series, DataFrame | |
#Series | |
#data仮引数 : データ。array-like, dict, or scalar value | |
#index仮引数 : データの添え字。array-like or Index (1d) | |
#dtype仮引数 : データタイプ。numpy.dtype or None | |
#copy仮引数 : コピー。デフォルトはfalse |
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
List<String> emails = new ArrayList<>(); | |
StringBuilder mailTo = new StringBuilder(); | |
mailTo.append("mailto:"); | |
for (String email : emails) { | |
if(android.util.Patterns.EMAIL_ADDRESS.matcher(email).matches()) { | |
//正しいメアドの時だけ追加する | |
mailTo.append(email); | |
mailTo.append(","); | |
} | |
} |
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
@Component(modules = RecipientRepositoryModule.class) | |
public interface CRecipientRepository { | |
IRecipientRepository maker(); | |
} | |
NewerOlder