Skip to content

Instantly share code, notes, and snippets.

View yossely's full-sized avatar

Yossely Mendoza yossely

  • Medellín, Colombia
View GitHub Profile
@dianjuar
dianjuar / develop-master-differences.md
Created September 14, 2020 21:03
See the commit differences between develop and master

To see the commit differences between develop and master

git checkout master && git pull && git checkout develop && git pull && git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative master..develop

Useful to know what is going to be deployed

@dianjuar
dianjuar / interviewer-questions.md
Last active March 20, 2023 17:34
List for questions to make in an interview

Role

  • How did this position come to be open?
  • What would my immediate priorities be?
  • What is the performance review process like here?
  • What are the most important skills to have to do well in this job?
  • What is the typical career path for someone in this role?
  • What are the biggest challenges that someone in this position would face?
  • Can you show me examples of projects I would be working on?
  • How will my performance be reviewed? how often? what metrics will be used?
  • When and how is feedback given to me as an employee? (one to one, polls)
@dianjuar
dianjuar / xfce-shortcuts-screenshot.md
Last active June 7, 2024 17:42
My xfce shortcuts to take screenshots
Command Shortcut
xfce4-screenshooter --fullscreen --clipboard Ctrl + PrtScrn
xfce4-screenshooter --fullscreen --save /home/dianjuar/Pictures PrtScrn
xfce4-screenshooter --region --clipboard Ctrl + Shift + PrtScrn
xfce4-screenshooter --region --save /home/dianjuar/Pictures Shift + PrtScrn
xfce4-screenshooter --window --clipboard Ctrl + Super + PrtScrn
xfce4-screenshooter --window --save /home/dianjuar/Pictures Super + PrtScrn
@fokusferit
fokusferit / enzyme_render_diffs.md
Last active June 18, 2024 11:27
Difference between Shallow, Mount and render of Enzyme

Shallow

Real unit test (isolation, no children render)

Simple shallow

Calls:

  • constructor
  • render
@dianjuar
dianjuar / How to enqueue Scripts in WordPress, the right way.md
Last active May 7, 2017 23:34
How to enqueue Scipts in WordPress, the rigth way

When you want to enqueue a script in WordPress you need the URL of the JS or CSS!.

To accomplish that, the best way is to use a constant that have the URL of your plugin

if ( !defined( 'XXXXXX_PLUGIN_URL' ) )
	define( 'XXXXXX_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
@dianjuar
dianjuar / Simple PHP Variable Printing with Structure.md
Last active October 2, 2016 20:05
Simple PHP Variable Printing with Structure
<?php
print( '<pre>'.print_r($var,true).'</pre>' );

Written with StackEdit.

@pererinha
pererinha / ignoreMouseWheel.js
Created June 30, 2014 12:58
Angular JS Directive - to disable mouse wheel on input type number
directive( 'ignoreMouseWheel', function( $rootScope ) {
return {
restrict: 'A',
link: function( scope, element, attrs ){
element.bind('mousewheel', function ( event ) {
element.blur();
} );
}
}
} );
@didats
didats / nationality.html
Created December 28, 2013 00:00
Nationality List in HTML Dropdown
<select name="nationality">
<option value="">-- select one --</option>
<option value="afghan">Afghan</option>
<option value="albanian">Albanian</option>
<option value="algerian">Algerian</option>
<option value="american">American</option>
<option value="andorran">Andorran</option>
<option value="angolan">Angolan</option>
<option value="antiguans">Antiguans</option>
<option value="argentinean">Argentinean</option>
@tarolandia
tarolandia / placeholder-color.sass
Created April 22, 2013 12:33
Sass: mixin that let you change placeholder font color.
@mixin placeholder-color($color) {
&::-webkit-input-placeholder { /* WebKit browsers */
color: $color;
}
&:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
color: $color;
}
&::-moz-placeholder { /* Mozilla Firefox 19+ */
color: $color;
}
@assertchris
assertchris / gist:2577836
Created May 2, 2012 16:09
Highlight lines in Ace (Editor)
###
CoffeeScript
marker = null;
require(["ace/range"], (range) ->
marker = editor.getSession().addMarker(new range.Range(7, 0, 7, 2000), "warning", "line", true);
)
setTimeout(->