A few regular expressions to parse WIFI schemes such as:
WIFI:T:WEP;S:test;P:rainbows\;unicorns\:jedis\,ninjas\\ secure;;
###Raw (?<=T:)[a-zA-Z]+(?=;)
#include "MinimapUserWidget.h" | |
#include "Kismet/GameplayStatics.h" | |
FVector2D UMinimapUserWidget::GetImageCoordsFromWorldLoc(FVector WorldLoc) const | |
{ | |
// Image coordinate system in UMG is: | |
// 0,0 ------> +x | |
// | | |
// | | |
// | |
#!/usr/bin/env python | |
# vim:set ft=python fileencoding=utf-8 sr et ts=4 sw=4 : See help 'modeline' | |
# From http://www.noah.org/wiki/Wavelength_to_RGB_in_Python | |
''' | |
== A few notes about color == | |
Color Wavelength(nm) Frequency(THz) | |
Red 620-750 484-400 | |
Orange 590-620 508-484 |
void randomDelay(float min, float max){ | |
int random = (int)(max * Math.random() + min); | |
try { | |
Thread.sleep(random * 1000); | |
} catch (InterruptedException e) { | |
// TODO Auto-generated catch block | |
e.printStackTrace(); | |
} | |
} |
from time import sleep | |
import time | |
import datetime | |
import zachhue | |
import os | |
import winsound, sys | |
lastColor = zachhue.office.xy | |
lastBrightness = zachhue.office.brightness | |
bIsBuilding = False |
/** | |
* @OnlyCurrentDoc | |
*/ | |
kvString = "=KV("; | |
kvaString = "=KVA("; | |
/** | |
* A special function that runs when the spreadsheet is open, used to add a | |
* custom menu to the spreadsheet. |
#include "AndroidPermissionFunctionLibrary.h" | |
#include "AndroidPermissionCallbackProxy.h" | |
void SomeFuncWhereYouNeedPermissions() | |
{ | |
#if PLATFORM_ANDROID | |
// If we don't have the permission | |
if (!UAndroidPermissionFunctionLibrary::CheckPermission(TEXT("android.permission.RECORD_AUDIO"))) | |
{ | |
// Build an array of permissions to request |
import math | |
# This is based on original code from http://stackoverflow.com/a/22649803 | |
def EnhanceColor(normalized): | |
if normalized > 0.04045: | |
return math.pow( (normalized + 0.055) / (1.0 + 0.055), 2.4) | |
else: | |
return normalized / 12.92 | |
def RGBtoXY(r, g, b): |
#!/bin/bash | |
############################################################################## | |
# Workaround for Dropbox daemon | |
# ----------------------------- | |
# Verified on Dropbox v77.4.131 | |
# Just make it executable (if need, using | |
# $ chmod a+x fix_dropbox | |
# ) and run it. | |
# Author: Здравко | |
# www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790 |
#Plow through all images in the folder | |
#Write a tracking number in the top left corner | |
#Save a text file that shows the original filename and the | |
#tracking number. | |
from PIL import Image | |
from PIL import ImageFont | |
from PIL import ImageDraw | |
import glob, os | |
import random |