I hereby claim:
- I am zyber17 on github.
- I am zackary (https://keybase.io/zackary) on keybase.
- I have a public key whose fingerprint is 8BB1 13B9 436C 5FD0 FC63 D88A 5469 4C69 FB58 3F7F
To claim this, I am signing this object:
git rm -r --cached node_modules | |
git commit -m 'Remove the now ignored directory node_modules' | |
git push origin master |
rule 'Move folders from one directory to another' do | |
folder_destination = '[the path of the directory to where we want the folder moved]' | |
if File.directory?(folder_destination) #Let's make sure that the directory we want to move the folder to exists | |
dir('[the direcotry where we are getting the folder from]').each do |folder| #Let's grab all the potential folders | |
if File.directory?(folder) #Let's check and see if this item is a folder | |
file_destination = folder_destination + File.basename(folder) #Let's get the path to the folder we're about to create | |
mkdir(file_destination) #We need to make the 'moved' folder where we're going to put the files from the original folder | |
move(dir("#{folder}/*"), file_destination) #Now we can move the files | |
trash(folder) #Finally, let's trash the original folder | |
end |
import webbrowser | |
import urllib | |
import sys | |
url = sys.argv[1] | |
text = url.encode('utf-8') | |
text = urllib.quote(text, safe='') | |
go = urllib.quote('launchpro://messaging?body='+text, safe='') |
I hereby claim:
To claim this, I am signing this object:
repeat | |
tell application "System Events" to set CalIsRunning to (name of processes) contains "Calendar" | |
tell application "Calendar" | |
if CalIsRunning is false then | |
activate | |
delay 10 # If Calendar isn't running and needs to be launched, the script will fail becuase Calendar isn't ready to accept commands as soon as it's launched. | |
end if | |
set workEvents to (get events of calendar "Calendar 1") | |
set testEvents to (get events of calendar "Calendar 2") | |
set testEventDates to {} |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
-o-box-sizing: border-box; | |
box-sizing: border-box; |
const fbGen = (fbValues, min, max) => | |
Array.apply(null, Array(max - min + 1)) | |
.map((val, i) => min + i) | |
.map(val => | |
fbValues.reduce( | |
(accum, fbVal) => | |
val % fbVal.number === 0 ? `${accum}${fbVal.text}` : accum, | |
'' | |
) || val | |
) |
tell application "System Events" | |
keystroke (the clipboard) | |
end tell |