Skip to content

Instantly share code, notes, and snippets.

View wiyarmir's full-sized avatar
:shipit:
🚢

Guillermo Orellana wiyarmir

:shipit:
🚢
View GitHub Profile
private String currentLocale;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
currentLocale = getResources().getConfiguration().locale.toString();
}
@Override
public void onConfigurationChanged(Configuration newConfig) {
@wiyarmir
wiyarmir / symfonyrc
Created January 25, 2016 10:47
Script to configure automatically an alias to Symfony console with version 3.0 and earlies
#!/bin/bash
# Comment this if you won't display the symfony version and environment
export SYMFONYRC_DISPLAY_VERSION=1
# Execute 'sfenv' to change the default environment
function sfenv()
{
case $1 in
prod|dev|test )