This file contains hidden or 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
| defaults write com.apple.screencapture location ~/your/path | |
| killall SystemUIServer | |
This file contains hidden or 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
| partyTime = new Date(2010,12,11,23,30,0); | |
| yrTime = new Date(); | |
| /// test for party | |
| var checkForParty = function (yrTime, partyTime){ | |
| if (yrTime < partyTime) { | |
| return false; | |
| } else { | |
| return true; | |
| } |
This file contains hidden or 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 flight = { | |
| airline: "Oceanic", | |
| number: 815, | |
| departure: { | |
| IATA: "SYD", | |
| time: "2004-09-22 14:55", | |
| city: "Sydney" | |
| }, | |
| arrival: { | |
| IATA: "LAX", |
This file contains hidden or 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
| @mixin hp-opacity($trans) { | |
| filter: alpha(opactiy=($trans * 100)); | |
| -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=#{$trans * 100})"; | |
| -moz-opacity: $trans; | |
| -khtml-opacity: $trans; | |
| opacity: $trans; | |
| } |
This file contains hidden or 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
| $("div.hp_main_object").hover(function(){ | |
| $(this).find(".hp_griddy_panel").addClass("on"); | |
| $(this).children(".hp_griddy_title").css({ | |
| "background" : "rgb(137,137,137)", | |
| "cursor" : "pointer", | |
| "color" : "rgb(255,255,255)" | |
| }); | |
| if ( $(this).children("h5.hp_object_title") === true ) { |
This file contains hidden or 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
| <div class="hp_main_object hover grid_2 alpha"> | |
| <div class="hp_griddy_price"><h5>$50</h5></div> | |
| <div category="users" class="hp_griddy_img_wrap"> | |
| <a href="/users/19/profile"><img alt="Square" class="imgcontainer" height="140" src="http://s3.amazonaws.com/prestigedevelopment/jonathan_hp/thing_photos/19/square.jpg?1293060417" width="140" /></a> | |
| </div> | |
| <div class="hp_griddy_title"> | |
| <h5 class="hp_object_title">Couch </h5> |
This file contains hidden or 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
| /* @MIXINS */ | |
| @mixin rounded-corners($radius) { | |
| border-radius: $radius; | |
| -moz-border-radius: $radius; | |
| -webkit-border-radius: $radius; | |
| -khtml-border-radius: $radius; | |
| } | |
| @mixin rounded-top($side, $radius) { |
This file contains hidden or 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
| _hoverLocation = $(".hp_hoverlocation"); | |
| // add focus styles for location form | |
| _setLocationForm.focusin( | |
| function() { | |
| _setLocation.addClass("expose_form"); | |
| _protipArrow.addClass("protip_transparent"); | |
| _protip.addClass("protip_transparent"); | |
| _hoverCover.addClass("darkbody").css("height", $(document).height()).show(); | |
| console.log(_hoverLocation.length); |
This file contains hidden or 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 width = document.width / 3; | |
| var height = document.height / 3; | |
| var i = 0; | |
| cell = $("<div/>", { | |
| "class" : "video", | |
| "width" : width + "px", | |
| "height" : height + "px", | |
| "click" : function(e) { | |
| e.preventDefault(); |
This file contains hidden or 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
| $table = '_emails'; | |
| $id = 'id_emails'; | |
| $emailColumn = 'email_addr;' | |
| $query = sprintf("INSERT INTO `%s`.`%s` (`%s`,`%s`) VALUES (NULL, '%s')", | |
| $dbname, | |
| $table, | |
| $id, | |
| $emailColumn, | |
| mysql_real_escape_string($email)); |