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
| UPDATE wp_posts SET post_content = REPLACE(post_content, '“', '“'); | |
| UPDATE wp_posts SET post_content = REPLACE(post_content, 'â€', '”'); | |
| UPDATE wp_posts SET post_content = REPLACE(post_content, '’', '’'); | |
| UPDATE wp_posts SET post_content = REPLACE(post_content, '‘', '‘'); | |
| UPDATE wp_posts SET post_content = REPLACE(post_content, '—', '–'); | |
| UPDATE wp_posts SET post_content = REPLACE(post_content, '–', '—'); | |
| UPDATE wp_posts SET post_content = REPLACE(post_content, '•', '-'); | |
| UPDATE wp_posts SET post_content = REPLACE(post_content, '…', '…'); | |
| UPDATE wp_posts SET post_content = REPLACE(post_content, '…', '…'); | |
| UPDATE wp_posts SET post_content = REPLACE(post_content, 'Â', ' '); |
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 os | |
| import sys | |
| import pickle | |
| from googleapiclient.discovery import build | |
| from googleapiclient.http import MediaFileUpload | |
| from google_auth_oauthlib.flow import InstalledAppFlow | |
| from google.auth.transport.requests import Request | |
| directoryIndexMap = {} |
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 smtplib | |
| server = smtplib.SMTP("smtp.gmail.com", 587) | |
| server.ehlo() | |
| server.starttls() | |
| server.ehlo() | |
| server.login("account@example.com", password) | |
| msg = "To: destination@example.com\n" | |
| msg += "From: source@example.com\n" | |
| msg += "Subject: " |
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
| REM You can put this batch file on your Desktop, and drag-and-drop ARC files into it! | |
| REM It will automatically create a folder with the same name as the ARC file, extract the files into it, and delete the original ARC file. | |
| mkdir "%~p1\%~n1" | |
| move %1 "%~p1\%~n1" | |
| cd "%~p1\%~n1" | |
| E:\cygwin\bin\arc.exe x "%~p1\%~n1\%~n1.arc" | |
| del "%~p1\%~n1\%~n1.arc" |
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
| { | |
| "batchcomplete": "", | |
| "query": { | |
| "notifications": { | |
| "list": [ | |
| { | |
| "wiki": "enwiki", | |
| "id": "73770596", | |
| "type": "edit-user-talk", | |
| "category": "edit-user-talk", |
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 RPi.GPIO as GPIO | |
| import time | |
| GPIO.setmode(GPIO.BCM) | |
| GPIO.setwarnings(False) | |
| GPIO.setup(4,GPIO.OUT) | |
| GPIO.setup(23,GPIO.OUT) | |
| GPIO.setup(25,GPIO.OUT) | |
| index = 0 | |
| while True: |
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
| @Override | |
| protected void onStart() { | |
| try { | |
| super.onStart(); | |
| } catch (Throwable t) { | |
| if (ThrowableUtil.throwableContainsException(t, PackageManager.NameNotFoundException.class)) { | |
| // This can happen when the system updates the WebView component. There's a | |
| // brief window of time when the old WebView is uninstalled from the package | |
| // manager, and the new one is not yet installed, so it literally doesn't exist. |
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
| private abstract class ImagePipelineStreamGetter { | |
| private String imageUrl; | |
| public ImagePipelineStreamGetter(String imageUrl) { | |
| this.imageUrl = imageUrl; | |
| } | |
| public abstract void onSuccess(InputStream stream); | |
| public abstract void onError(Throwable t); |
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
| ligature: ff fi fl ffi ffl | |
| hyphen: ‐ | |
| non-breaking hyphen: ‑ | |
| minus sign: − | |
| figure dash: ‒ | |
| en dash: – | |
| em dash: — | |
| horizontal bar: ― |
NewerOlder