-
Shortened URL for this gist: https://git.io/v68XM
-
GitHub repository: ES6 in Motion
-
Arrow Functions
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
| # OpenClaw Implementation Prompts | |
| Each prompt below is a self-contained brief you can hand to an AI coding assistant (or use as a project spec) to build that use case from scratch. Adapt the specific services to whatever you already use — the patterns are what matter. | |
| --- | |
| ## 1) Personal CRM Intelligence | |
| ``` | |
| Build me a personal CRM system that automatically tracks everyone I interact with, with smart filtering so it only adds real people — not newsletters, bots, or cold outreach. |
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
| using Microsoft.IdentityModel.Clients.ActiveDirectory; | |
| using System; | |
| using System.Collections.Generic; | |
| namespace MichelOverrideExampleApp | |
| { | |
| public class MichelOverrideExampleHookImplementation : Microsoft.Xrm.Tooling.Connector.IOverrideAuthHookWrapper | |
| { | |
| // In memory cache of access tokens | |
| Dictionary<string, AuthenticationResult> accessTokens = new Dictionary<string, Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult>(); |
Get the current Unix timestamp (seconds from 1970-01-01T00:00:00Z) in SQL.
- MySQL:
UNIX_TIMESTAMP() - PostgreSQL:
CAST(EXTRACT(epoch FROM NOW()) AS INT) - MS SQL:
DATEDIFF(s, '1970-01-01', GETUTCDATE()) - Oracle:
(CAST(SYS_EXTRACT_UTC(SYSTIMESTAMP) AS DATE) - DATE'1970-01-01') * 86400
by alexander white ©
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
| ; The official HD AI | |
| ; An Artificial Intelligence Script written by Archon and Promiskuitiv | |
| ; Get in contact with Promiskuitiv by sending a mail to neuernamae@web.de | |
| ; List of taunts it reacts to: | |
| ; Standard taunts. | |
| ; 33 - Stop slinging resources. If slinging is requested early and is immediately canceled it may mess up the strategy. | |
| ; 38 - Sling Resources. Human player only, stops any unit production except for civilian units. |
List some crypto libraries for JavaScript out there. Might be a bit out dated. Scroll to the bottom.
http://www.w3.org/TR/WebCryptoAPI/
This specification describes a JavaScript API for performing basic cryptographic operations in web applications, such as hashing, signature generation and verification, and encryption and decryption. Additionally, it describes an API for applications to generate and/or manage the keying material necessary to perform these operations. Uses for this API range from user or service authentication, document or code signing, and the confidentiality and integrity of communications.
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
| function getPhoto() { | |
| navigator.camera.getPicture(onPhotoSuccess, onPhotoFail, | |
| {quality: 70, targetWidth: 500, targetHeight: 500, | |
| sourceType: navigator.camera.SourceType.PHOTOLIBRARY, | |
| destinationType: navigator.camera.DestinationType.FILE_URI, | |
| }); | |
| } | |
| function onPhotoSuccess(imageUri) { | |
| var $img = $('<img/>'); |
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
| Ben Batha | |
| Email: bbatha@u.rochester.edu | |
| Google ID: applied under: elektronjunge | |
| prefered contact: bhbatha | |
| Other contact info: bbatha on irc.parrot.org #parrot | |
| Your Project's Title: Java Byte Code to Parrot | |
| Abstract | |
| The focus of this project is to build a translator from Java Byte Code to Parrot friendly targets (PIR). |
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
| package xyz.ping.server.impl; | |
| import java.util.concurrent.TimeUnit; | |
| import javax.servlet.http.HttpServlet; | |
| import org.apache.thrift.protocol.TBinaryProtocol; | |
| import org.apache.thrift.server.TThreadPoolServer; | |
| import org.apache.thrift.server.TThreadPoolServer.Args; | |
| import org.apache.thrift.transport.TServerSocket; |
NewerOlder