Collect english words http://es.talkenglish.com/vocabulary/english-vocabulary.aspx http://es.talkenglish.com/vocabulary/top-1500-nouns.aspx http://es.talkenglish.com/vocabulary/top-1000-verbs.aspx http://es.talkenglish.com/vocabulary/top-500-adjectives.aspx http://es.talkenglish.com/vocabulary/top-250-adverbs.aspx http://es.talkenglish.com/vocabulary/top-60-pronouns.aspx http://es.talkenglish.com/vocabulary/top-50-prepositions.aspx
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
// This is the main Node.js source code file of your actor. | |
// It is referenced from the "scripts" section of the package.json file. | |
const Apify = require('apify'); | |
const readItem = () => { | |
var result = null; | |
result = $("div[class='aditem']").map(function() { |
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/env python2.7 | |
import sys | |
import locale | |
from PIL import Image | |
from PIL.ExifTags import TAGS | |
from datetime import datetime | |
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/env python | |
import random | |
from gimpfu import * | |
import sys | |
import locale | |
from PIL import Image | |
from PIL.ExifTags import TAGS | |
from datetime import datetime | |
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/env python | |
#import gimp | |
#from pdb import * | |
#import math, struct | |
from gimpfu import * | |
# pdb.gimp_invert(layer) |
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/env python | |
''' | |
Ok I finally got it working. I used the GIMP Python scripting to create a gimp plugin which can do a tonne of stuff including the layers you mentioned. Then you can just run gimp from the command line passing arguments to the python gimp script. The article Using Python-Fu in Gimp Batch Mode was an excellent resource for learning how to call gimp plugins from the command line. The example below will load the specified image into gimp, flip it horizontally, save and exit gimp. | |
flip.py is the gimp plug-in and should be placed in your plug-ins directory which was ~/.gimp-2.6/plug-ins/flip.py in my case. | |
flip.py |
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/env python | |
import os | |
from os import listdir | |
from os.path import isfile, join | |
mypath = os.path.dirname(os.path.realpath(__file__)) | |
onlyfiles = [f for f in os.listdir(mypath) if os.path.isfile(join(mypath, f)) and f.endswith('.heic')] | |
print onlyfiles |
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 casper = require('casper').create({ | |
/* | |
clientScripts: [ | |
'includes/jquery.js', // These two scripts will be injected in remote | |
'includes/underscore.js' // DOM on every request | |
], | |
*/ | |
pageSettings: { | |
resourceTimeout: 3600000, | |
loadImages: true, // The WebPage instance used by Casper will |
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/env python | |
#coding:utf-8 | |
from __future__ import print_function | |
from PIL import Image | |
import math | |
import os | |
import tempfile | |
import shutil | |
from threading import Thread |
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/env python | |
#coding:utf-8 | |
from __future__ import print_function | |
from PIL import Image | |
import math | |
import os | |
import tempfile | |
import shutil | |
from threading import Thread |
NewerOlder