Skip to content

Instantly share code, notes, and snippets.

/** Init custom properties **/
:root {
--hover-transform: scale(0.93);
--hover-transition: transform ease-out 0.2s, background 0.4s;
--hover-background: rgba(255, 255, 255, 0.05);
}
/** Page header **/
.header-icon,
.header-pulse-ok,
do
function run(msg, matches)
local lat = matches[1]
local lon = matches[2]
local receiver = get_receiver(msg)
send_location(receiver, lat, lon, ok_cb, false)
https://www.ingress.com/intel?ll=59.440752,24.751831&z=17&pll=59.440752,24.751831
patterns = {"https?://www.ingress.com/intell?ll=(%d+.%d+)[^,](%d+.%d+)*$"}
matches[1] = 59.440752
matches[2] = 24.751831
do local _ = {
blacklist = {
"anal",
"anus",
"arse",
"ass",
"ballsack",
"balls",
"bastard",
"bitch",
private async void Button_Click(object sender, RoutedEventArgs e)
{
Func<string, bool> func = message =>
{
var asd = Application.Current.Dispatcher.Invoke(new Func<Task<MessageDialogResult>>(async () =>
{
var mySettings = new MetroDialogSettings()
{
AffirmativeButtonText = "YES",
NegativeButtonText = "NO",
__author__ = 'Priit Heinsaar'
import xml.etree.ElementTree as ET
class Sequence:
"""Object for holding sequence data"""
def __init__(self, startTemp, endTemp, startHue, endHue):
self.StartTemp = startTemp
self.EndTemp = endTemp
self.StartHue = startHue
<?xml version="1.0" ?>
<colorsettings>
<alarm>
<starttemp>110</starttemp>
<hue>0</hue>
</alarm>
<steamsplash>
<starthue>0</starthue>
<endhue>120</endhue>
</steamsplash>
var type = info.PropertyType;
if (type == typeof(string))
{
field.Read((string)xmlData.Tellimuse_info.GetType().GetProperty(field.Dto.Name).GetValue(xmlData.Tellimuse_info, new object[0]));
}
else
{
field.Read((int)xmlData.Tellimuse_info.GetType().GetProperty(field.Dto.Name).GetValue(xmlData.Tellimuse_info, new object[0]));
}
public static bool ValidateCardInReader(string ReaderFriendlyName, bool MakeReset)
{
bool retVal = false;
try
{
using (var context = new PCSCConnectionContext())
{
var r = ReaderFriendlyName ?? GetSinglePresentCardReader();
@soend
soend / request
Created September 27, 2011 13:21
Sunrise/sunset request
http://www.earthtools.org/sun/<latitude>/<longitude>/<day>/<month>/<timezone>/<dst>