This file contains 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
*:not([class*=icon]) { | |
font-family: inherit; | |
} | |
html { | |
font-family: sans-serif !important; | |
} | |
tt, code, kbd, samp, pre, xmp, plaintext, listing { | |
font-family: monospace !important; |
This file contains 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
const express = require('express'); | |
const twilio = require('twilio'); | |
const app = express(); | |
app.use('/twilio', twilio.middleware); | |
const call = await twilio.call.create('+12125551234', { from: '+16465551234' }); | |
call.say('Welcome to Cuvva'); |
This file contains 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 <Foundation/Foundation.h> | |
typedef NS_ENUM(NSUInteger, BatteryStatus) | |
{ | |
BatteryStatusUnknown, | |
BatteryStatusOkay, | |
BatteryStatusLow, | |
BatteryStatusEmpty | |
}; |
This file contains 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 "UIViewController+UniversalModal.h" | |
@implementation UIViewController (UniversalModal) | |
- (void)presentViewControllerFromVisibleViewController:(UIViewController *)viewControllerToPresent | |
animated:(BOOL)animated | |
completion:(void (^)(void))completion | |
{ | |
if ([self isKindOfClass:[UINavigationController class]]) |
This file contains 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 <objc/runtime.h> | |
- (BOOL) class:(Class)classA descendsFromClass:(Class)classB | |
{ | |
while (1) | |
{ | |
if (classA == classB) return true; | |
id superClass = class_getSuperclass(classA); | |
if (classA == superClass) return (superClass == classB); | |
classA = superClass; |
This file contains 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
require 'httparty' | |
require 'nokogiri' | |
class PlauralObject | |
def initialize(name, number) | |
@name = name | |
@number = number | |
end | |
def cost |
This file contains 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 'compass/css3/font-face'; | |
@mixin nice-font-face($name, $directoryName, $svg, $weights, $style, $fileSuffix: '', $nameOverride: false) | |
{ | |
@each $weight in $weights | |
{ | |
$path: $directoryName + '/'; | |
$files: ''; | |
@if ($nameOverride) |
NewerOlder