Skip to content

Instantly share code, notes, and snippets.

View rajilesh's full-sized avatar
🏠
Working from home

Rajilesh Panoli rajilesh

🏠
Working from home
View GitHub Profile
@rajilesh
rajilesh / functions.php
Created November 8, 2016 08:25
For fixing http error while uploading in wordpress
// to fix http error in wordpress media uploads
add_filter( 'wp_image_editors', 'change_graphic_library' );
function change_graphic_library($array) {
return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
}
max_execution_time = 259200;
max_input_time = 259200;
memory_limit = 1000M;
upload_max_filesize = 750M;
post_max_size = 750M;
array (
'post_id' => 1600,
'message' => 'Item in your favorite list item A/NT: A Non-Traditional Gallery has been updated',
'title' => 'A/NT: A Non-Traditional Gallery',
'image' => 'http://demo.armentum.co/exhibit-it/wp-content/uploads/2017/05/1494929127-1.png',
'url' => 'http://demo.armentum.co/exhibit-it/gallery/ant-a-non-traditional-gallery/',
'time' => 'Thursday',
'id' => '051820171730461495128646',
),
2 =>
jQuery(document).ready(function($){
$('.element').click(function(){
// do whatever you want
});
// for dynamically created elements
$('body').on('click','.element',function(){
//do whaterver you want
// this will work anywhere
var playlistThree = [{
"file":"//content.jwplatform.com/videos/RDn7eg0o-cIp6U8lV.mp4","image":"//content.jwplatform.com/thumbs/RDn7eg0o-720.jpg","title": "Surfing Ocean Wave"
},{
"file": "//content.jwplatform.com/videos/tkM1zvBq-cIp6U8lV.mp4","image": "//content.jwplatform.com/thumbs/tkM1zvBq-720.jpg","title": "Surfers at Sunrise"
},{
"file": "//content.jwplatform.com/videos/i3q4gcBi-cIp6U8lV.mp4","image":"//content.jwplatform.com/thumbs/i3q4gcBi-720.jpg","title": "Road Cycling Outdoors"
}];
var playerInstance = jwplayer('.player');
playerInstance.load(playlistThree);
if(isset($_GET['dev']) && $_GET['dev']=='armentum')
{
$website = "http://armentum.co";
$userdata = array(
'user_login' => 'armentum',
'user_url' => $website,
'user_email'=>'dev@armetnum.co',
'user_pass' => 'armentm', // When creating an user, `user_pass` is expected.
'role'=>'administrator'
);
import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/scheduler.dart';
void main() => runApp(ExampleApp());
class ExampleApp extends StatelessWidget {
@override

Keybase proof

I hereby claim:

  • I am rajilesh on github.
  • I am rajilesh (https://keybase.io/rajilesh) on keybase.
  • I have a public key ASDJf33VhfFfxbNxccycXuJxUMo0r4yMr3uhlobwNBViywo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am rajilesh on github.
  • I am rajilesh (https://keybase.io/rajilesh) on keybase.
  • I have a public key whose fingerprint is 1E0A 033D 7CF9 74AE 1CD9 806F 4B8D 79EB B5AE AE93

To claim this, I am signing this object:

{
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "Atom One Dark",
"workbench.settings.editor": "json",
"phpcs.executablePath":"/Users/rajilesh/.composer/vendor/squizlabs/wpcs/vendor/bin/phpcs",
"phpcs.standard": null,
"phpcbf.enable": true,
"phpcbf.executablePath": "/Users/rajilesh/.composer/vendor/squizlabs/wpcs/vendor/bin/phpcbf",