Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Elias Maalouf emaalouf

🎯
Focusing
Block or report user

Report or block emaalouf

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View CSC2203 First ex
CREATE TABLE IF NOT EXISTS Sale (
`SaleID` INT,
`SaleDate` DATETIME,
`Tax` NUMERIC(2, 0),
`Total` VARCHAR(3) CHARACTER SET utf8,
View Compost CN Ratio calculator
<html>
<head>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-32490006-1']);
@emaalouf
emaalouf / iphone_vibrate.m
Created Jun 4, 2016 — forked from Air-Craft/iphone_vibrate.m
Short custom vibration on iPhone #ios #vibration #private-api
View iphone_vibrate.m
// Headers
#import <AudioToolbox/AudioToolbox.h>
void AudioServicesStopSystemSound(SystemSoundID inSystemSoundID);
void AudioServicesPlaySystemSoundWithVibration(SystemSoundID inSystemSoundID,id arg,NSDictionary* vibratePattern);
// Buzz code
NSArray *vibe = @[ @YES, @10 ]; // ON for 10ms
NSDictionary *dict = @{ @"Intensity": @0.1, @"VibePattern": vibe };
AudioServicesPlaySystemSoundWithVibration(kSystemSoundID_Vibrate,nil,dict);
You can’t perform that action at this time.