This file contains 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
-- H.Zimmerman, AppleScript. | |
-- Create text file in current Finder folder with a dialog. | |
tell application "Finder" | |
try | |
display dialog "name of doc please (without the .txt thing)" default answer "" | |
set fileName to the text returned of result | |
if length of fileName = 0 then | |
return 0 |
This file contains 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
tell application "Finder" | |
try | |
set fileName to "eeee" | |
if length of fileName = 0 then | |
return 0 | |
end if | |
set fileExt to "txt" | |
set thisFolder to "Macintosh HD:Users:csilverman:Dropbox:dev:Local Sites:csiprojects:app:public:playlists:assets:links" | |
-- the target of the front window as alias |
This file contains 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 discreteElements = document.getElementsByClassName('animate-this') | |
for (var i = 0; i < discreteElements.length; i++) { | |
new Waypoint({ | |
element: discreteElements[i], | |
handler: function() { | |
this.element.classList.add("top-50pfrom-topOfWindow"); | |
}, | |
// context: document.getElementById('page-content'), | |
offset: '50%' | |
}); |
This file contains 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
<?php | |
foreach ($array as &$item) { | |
// code | |
} | |
unset($item); | |
foreach ($array as $key => $value) { | |
// code | |
} |
This file contains 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
tell application "Finder" | |
set p to path to desktop -- Or whatever path you want | |
make new folder at p with properties {name:"New Folder"} | |
end tell |
This file contains 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 discreteElements = document.getElementsByClassName('sticky-frame') | |
for (var i = 0; i < discreteElements.length; i++) { | |
new Waypoint({ | |
element: discreteElements[i], | |
handler: function(direction) { | |
if ( direction == 'down' ) | |
this.element.classList.add('stuck'); | |
else | |
this.element.classList.remove('stuck'); | |
}, |
This file contains 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
details { | |
summary { | |
list-style: none; | |
&::marker, | |
&::-webkit-details-marker { | |
display:none; | |
} | |
} | |
} |
This file contains 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
:root { | |
--burgundy-light: #951829; | |
--gray-light: #d7cfcc; | |
--gray-xxxlight: #f7f5f1; | |
--gray-xxxlight-border: 1px solid rgba(212, 204, 202, 0.3); | |
--gray-charcoal: #222; | |
--gold: #C6AA76; | |
This file contains 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
/// Rem output with px fallback. | |
/// | |
/// @group Typography | |
/// @author Adam Laki | |
/// | |
/// @param {Number} $sizeValue - Element's font size | |
/// @output `font-size` with fallback | |
/// | |
/// @example scss - Set rem font-size to `.foo` | |
/// .foo { |