acceptImport
activate
addAttribute
addExternalContentForFileAttr
addItemObserver
addListObserver
addOpaqueData
ancestorCollections
ancestors
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
class MainWidget(QtGui.QMainWindow): | |
def __init__(self, parent=None): | |
super(MainWidget, self).__init__(parent) | |
self.setWindowTitle("FiFiFactory App") | |
self.resize(720,480) | |
self.setAcceptDrops(True) | |
def dragEnterEvent(self, event): | |
if event.mimeData().hasUrls(): | |
event.accept() |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Fri Jun 12 23:18:02 2015 | |
@author: ZhuJiaqi | |
""" | |
# loop======================================================= | |
days = ["Mon","Tue","Wed","Thu","Fri","Sat","Sun"] | |
for i, d in enumerate(days): | |
print i, d |
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
Here are a few questions that will tee us up for a good conversation: | |
- Can you tell me about your project in a few sentences? | |
- What’s the timeframe? Does a certain event depend on this project launching? | |
- What are you looking for from us? Do you want us to design, build, and launch the whole site? Or do you have developers or other partners lined up and only need us for design? | |
- Have you already started on any part of the project? Do you have existing work? A new logo? Some rough designs or ideas for the site? | |
- How large is your team? What are the roles you envision on your end? | |
- How did you hear about our work? What specifically interests you about it? Any projects that you’re keen on? | |
- How much money have you set aside for this project? | |
- Are you talking to others about this project? Might we ask how many? What do you like about their work? |
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
# Import Toolkit so we can access to Toolkit specific features. | |
import sgtk | |
# Import the ShotgunAuthenticator from the tank_vendor.shotgun_authentication | |
# module. This class allows you to authenticate either programmatically or, in this | |
# case, interactively. | |
from tank_vendor.shotgun_authentication import ShotgunAuthenticator | |
# Instantiate the CoreDefaultsManager. This allows the ShotgunAuthenticator to | |
# retrieve the site, proxy and optional script_user credentials from shotgun.yml |
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
#!/usr/bin/python | |
# -*- coding: iso-8859-1 -*- | |
__version__ = "$Revision: 0.1 $" | |
__author__ = "Pierrick Terrettaz" | |
__date__ = "2007-08-15" | |
import argparse, subprocess | |
if __name__ == '__main__': | |
parser = argparse.ArgumentParser(description='JPEG Keywords') |
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
robocopy c:\Sourcepath c:\Destpath /E /XC /XN /XO | |
:: /E makes Robocopy recursively copy subdirectories, including empty ones. | |
:: /XC excludes existing files with the same timestamp, but different file sizes. Robocopy normally overwrites those. | |
:: /XN excludes existing files newer than the copy in the source directory. Robocopy normally overwrites those. | |
:: /XO excludes existing files older than the copy in the source directory. Robocopy normally overwrites those. | |
:: With the Changed, Older, and Newer classes excluded, Robocopy will exclude files existing in the destination directory. |
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
return { | |
LrSdkVersion = 6.0, | |
LrSdkMinimumVersion = 6.0, | |
LrToolkitIdentifier = 'net.vurdalakov.lightroomplugintemplate', | |
LrPluginName = 'Lightroom Plugin Template', | |
LrExportMenuItems = { | |
title = "Show Lightroom &version", | |
file = "LightroomPluginTemplate.lua", | |
enabledWhen = "photosSelected" | |
} |
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
import requests | |
from bs4 import BeautifulSoup | |
# Set the variable `url` to a URL of your choice. | |
url = 'https://www.crummy.com/software/BeautifulSoup/bs4/doc/' | |
# Send a request to the URL and save what we get back in the variable `response` | |
response = requests.get(url) | |
# Get the raw text of the response. This will be a whole bunch of HTML. |