Skip to content

Instantly share code, notes, and snippets.

View alessaba's full-sized avatar

Alessandro Saba alessaba

  • 08:26 (UTC +02:00)
View GitHub Profile
@omz
omz / Untitled 4.py
Created January 2, 2014 15:05
Untitled 4
import console
import clipboard
import os
img = clipboard.get_image()
if img:
img.save('temp.jpg')
console.quicklook('temp.jpg')
os.remove('temp.jpg')
else:
@lukaskollmer
lukaskollmer / ui.View.js
Created February 11, 2017 19:08
Scripter's ui.View code
const objc = require('objc');
const Color = require("./color.js");
const ui = require("../index.js");
const UIView = objc("UIView");
const UIViewController = objc("UIViewController");
const LKJSViewController = objc("LKJSViewController");
const UINavigationController = objc("UINavigationController");
const UIApplication = objc("UIApplication");
/*
* The MIT License (MIT)
*
* Copyright (c) 2016 Pupyshev Nikita
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
@lukaskollmer
lukaskollmer / mapView.js
Created February 18, 2017 13:56
Scripter Map View example
const ui = require("ui");
const mapkit = require("mapkit");
const location = require("location");
let view = new ui.View();
let mapView = new mapkit.MapView();
mapView.backgroundColor = new ui.Color("red");
mapView.showsUserLocation = true;
mapView.mapType = mapkit.MapType.hybridFlyover;
@zhuowei
zhuowei / avatars.db.dump
Created August 12, 2018 19:44
plutil -p - <~/Library/Developer/CoreSimulator/Devices/<device>/data/Library/Avatar/avatars.db and also a dump of that hex blob inside the first dump
{
"$archiver" => "NSKeyedArchiver"
"$objects" => [
0 => "$null"
1 => {
"$class" => <CFKeyedArchiverUID 0x7fb2a4c0d8d0 [0x7fffa1485af0]>{value = 12}
"domains" => <CFKeyedArchiverUID 0x7fb2a4c0d890 [0x7fffa1485af0]>{value = 2}
"records" => <CFKeyedArchiverUID 0x7fb2a4c0d8b0 [0x7fffa1485af0]>{value = 8}
}
2 => {
@Lazza
Lazza / attack.xml
Created January 19, 2019 22:45
Italian Electronic Invoice with PHP attachment (phpinfo)
<?xml version="1.0" encoding="UTF-8"?>
<FatturaElettronica xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" versione="FPR12" xmlns="http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2">
<FatturaElettronicaHeader xmlns="">
<DatiTrasmissione>
<IdTrasmittente>
<IdPaese>IT</IdPaese>
<IdCodice>07643520567</IdCodice>
</IdTrasmittente>
<ProgressivoInvio>1</ProgressivoInvio>
<FormatoTrasmissione>FPR12</FormatoTrasmissione>
@Seasons7
Seasons7 / nstask.swift
Created July 22, 2015 19:21
NSTask Sample for Swift
import Cocoa
import Foundation
var str = "Hello, playground"
var task:NSTask = NSTask()
var pipe:NSPipe = NSPipe()
task.launchPath = "/bin/ls"
task.arguments = ["-la"]
@b3ll
b3ll / UIUndoGestureRecognizerFixes.m
Last active September 8, 2020 15:44
Disables the 3-Finger Gestures in iOS 13
//
// UIUndoGestureRecognizerFixes.m
// no u
//
// Created by Adam Bell on 8/22/19.
// Copyright © 2019 Adam Bell. All rights reserved.
//
#import "UIUndoGestureRecognizerFixes.h"
cp -r /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0\ \(15A5278f\) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

Hello,

I attended WWDC this year, and overall it was a fantastic experience. I would, however, like to give some feedback on one particular aspect of the conference.

Before I begin, I understand that it would be easy to brush off my feedback as coming from just some grumpy English guy, but I genuinely believe this is important feedback. Please do read until the end.

I would like to ask that the cheering, whooping, clapping and hollering by conference staff is toned down.

I'm a person that would describe myself as "slightly introverted". I cannot begin to describe how deeply uncomfortable it was to walk into the registration room on Sunday to multiple employees cheering and clapping at me, trying to give me high fives. I understand the want to make people excited, but this needs to have its limits. During the conference, I got cheered and high-fived pretty much the entire week for things like: