Skip to content

Instantly share code, notes, and snippets.

View jc3wmdev's full-sized avatar

Jamie Curran jc3wmdev

View GitHub Profile
@jc3wmdev
jc3wmdev / gist:5188921
Last active December 15, 2015 02:39
JQuery, Ajax and namespacing
var callsApp = callsApp || {};
callsApp.calls = {
onReady: function() {
$("button").on("click", this.getCallData);
},
getCallData: function(){
$.ajax({
type: "GET",
url: "/calls/stats.json",
@jc3wmdev
jc3wmdev / gist:4595509
Created January 22, 2013 15:29
find all photos in current directory and resize them.
find . -maxdepth 1 -type f -iname "*.jpg" -print0 | xargs -0 -I {} convert {} -resize 1900 resized/{}
@jc3wmdev
jc3wmdev / gist:4593725
Last active December 7, 2021 11:19
exiftool - list 5 star rated photos
exiftool -if '$Rating eq 5' *.JPG -q -p '$FileName'
@jc3wmdev
jc3wmdev / gist:4483612
Last active December 10, 2015 19:48
class methods in ruby
class Article
#class method
def self.publish
.......
end
end
# all class methods
class << Article
def publish