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
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. | |
#[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh | |
# Load version control information | |
autoload -Uz vcs_info | |
precmd() { vcs_info } | |
# Format the vcs_info_msg_0_ variable | |
zstyle ':vcs_info:git:*' formats '%b' |
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
# FOR CATALINA AND HIGHER | |
function parse_git_branch() { | |
git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/[\1]/p' | |
} | |
setopt PROMPT_SUBST | |
export PROMPT='%F{grey}%n%f %F{cyan}%~%f %F{green}$(parse_git_branch)%f %F{normal}$%f ' | |
# FOR THE REST |
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/bash | |
echo "$(tput setaf 3)Rebasing branch $1 with develop and pushing $(tput sgr0) | |
" | |
git stash && git checkout develop && git pull --rebase && git checkout $1 && git rebase origin/develop && git push -f origin $1 |
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
mysql_1 | 2017-06-02T08:32:52.623401Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). | |
mysql_1 | 2017-06-02T08:32:52.623440Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release. | |
mysql_1 | 2017-06-02T08:32:52.624430Z 0 [Note] mysqld (mysqld 5.7.18) starting as process 8 ... | |
mysql_1 | 2017-06-02T08:32:52.626653Z 0 [Note] InnoDB: PUNCH HOLE support available | |
mysql_1 | 2017-06-02T08:32:52.626668Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins | |
mysql_1 | 2017-06-02T08:32:52.626670Z 0 [Note] InnoDB: Uses event mutexes | |
mysql_1 | 2017-06-02T08:32:52.626672Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier | |
mysql_1 | 2017-06-02T08:32:52.626675Z 0 [Note] InnoDB: Compressed tabl |
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
var request = Titanium.Network.createHTTPClient(); | |
var done=false; | |
request.onload = function() { | |
try { | |
if (this.readyState == 4 || !done) { | |
done=true; | |
if(this.status===200){ | |
var content = JSON.parse(this.responseText); | |
}else{ |
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
function getTodos(){ | |
var request = Titanium.Network.createHTTPClient(); | |
var done=false; | |
request.onload = function() { | |
try { | |
if (this.readyState == 4 || !done) { | |
done=true; | |
if(this.status===200){ |
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 {Response} from '@angular/http'; | |
import { HttpService } from './httpservice.service'; | |
@Component({ | |
selector: 'http-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.css'], | |
providers:[HttpService] | |
}) | |
export class AppComponent implements OnInit { |
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
<?php | |
namespace App\Http\Controllers; | |
use App\HomePost; | |
use App\User; | |
use Illuminate\Http\Request; | |
use App\Http\Requests; | |
use Illuminate\Support\Facades\Auth; |
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
<?php | |
header('Content-type : bitmap; charset=utf-8'); | |
if(isset($_POST["encoded_string"])){ | |
$encoded_string = $_POST["encoded_string"]; | |
$image_name = $_POST["image_name"]; | |
$decoded_string = base64_decode($encoded_string); | |
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
05-17 13:22:56.154 4553-5635/com.shuffle.theo.shuffletrip E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #5 | |
java.lang.RuntimeException: An error occured while executing doInBackground() | |
at android.os.AsyncTask$3.done(AsyncTask.java:299) | |
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352) | |
at java.util.concurrent.FutureTask.setException(FutureTask.java:219) | |
at java.util.concurrent.FutureTask.run(FutureTask.java:239) | |
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230) | |
NewerOlder