(async function executeInstagramPostCollection(maxPosts = 10) {
console.log(`Starting Instagram post collection (limit: ${maxPosts} posts)...`);
// Verify we're on Instagram
if (!window.location.hostname.includes('instagram.com')) {
console.error("This script should be run on Instagram.com");
return;
}
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
| // Google Apps Script for counting emails by sender in batches. Stopps and resumes after 5mins of processing to avoid reaching script runtime limit. | |
| // 1. Allow required permissions | |
| // 2. Add gmail service to project | |
| // 3. Fill <your-email> in `runProcessor` function and adjust query if needed | |
| // 4. Run function `runProcessor` | |
| // 5. Result will be saved in a new spreadsheet | |
| // Based on ideas from https://stackoverflow.com/a/59222719/5162536 and | |
| // https://medium.com/geekculture/bypassing-the-maximum-script-runtime-in-google-apps-script-e510aa9ae6da |
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
| // Original script: https://gist.github.com/leodevbro/2987e8874a18b2086ea6cc1aa3c494e8 | |
| // v2.5 | |
| // Google Apps Script is a coding language based on JavaScript. | |
| // This Apps Script code helps us to sort addresses by most threads. | |
| // A thread is a group of messages, as a conversation. | |
| const modes = { | |
| inbox: "inbox", // to analyze threads in the "Inbox" folder | |
| outbox: "outbox", // to analyze threads in the "Sent" folder |
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
| zend_extension = "C:\xampp\php\ext\php_xdebug.dll" | |
| xdebug.profiler_append = 0 | |
| xdebug.profiler_enable = 1 | |
| xdebug.profiler_enable_trigger = 0 | |
| xdebug.profiler_output_dir = "C:\xampp\tmp" | |
| xdebug.profiler_output_name = "cachegrind.out.%t-%s" | |
| xdebug.remote_enable = 0 | |
| xdebug.remote_handler = "dbgp" | |
| xdebug.remote_host = "127.0.0.1" | |
| xdebug.trace_output_dir = "C:\xampp\tmp" |
If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:
- We define variables with
letandconststatements. For the purposes of the React documentation, you can consider them equivalent tovar. - We use the
classkeyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value ofthisin a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav
⚠️ 2019-2020: See more examples and updates on my article here!
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
| // Demonstration video can be found at: https://youtu.be/_gJyK1-NGq8 | |
| // ModifyEC2InstanceType | |
| const AWS = require('aws-sdk'); | |
| exports.handler = (event, context, callback) => { | |
| const { instanceId, instanceRegion, instanceType } = event; | |
| const ec2 = new AWS.EC2({ region: instanceRegion }); |
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
| select * from table t1 | |
| where (select count(*) from table t2 | |
| where t1.field = t2.field) > 1 | |
| order by field |
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
| <?php | |
| trait JsonSerialize | |
| { | |
| function jsonSerialize() | |
| { | |
| $reflect = new ReflectionClass($this); | |
| $props = $reflect->getProperties(ReflectionProperty::IS_STATIC | ReflectionProperty::IS_PUBLIC | ReflectionProperty::IS_PROTECTED | ReflectionProperty::IS_PRIVATE); | |
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
| <?php | |
| /* | |
| * [Yii2][Migration] Todos os estados e cidades do Brasil | |
| * | |
| * Autor: Emanuel A. Leite (https://github.com/AnDroidEL) | |
| * Data: 02/04/2016 | |
| * | |
| * Ajustes: Almir Bolduan (https://github.com/almirb) | |
| * Data: 01/09/2016 |
NewerOlder