Skip to content

Instantly share code, notes, and snippets.

View Vivekbhusal's full-sized avatar

Vivek Bhusal Vivekbhusal

  • Australia
View GitHub Profile
class MyPosts extends Component{
constructor(props) {
super(props);
this.handleDeletePost = this.handleDeletePost.bind(this);
}
handleDeletePost(postID) {
const {dispatch} = this.props;
dispatch(deletePostsRequest(postID))
}
#!/usr/bin/env ruby
require 'mail'
mysql_username = 'root'
mysql_password = '123456'
mysql_database = 'test'
system("mysqldump --user=#{mysql_username} --password=#{mysql_password} #{mysql_database} > backup.sql")
# Credit to :
package com.example.picassodemo;
import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.Paint;
import com.squareup.picasso.Transformation;
/**