This file contains hidden or 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
class BlogController < ApplicationController | |
def index | |
# Keys given from Tumblr API | |
@key = TUMBLR_KEY | |
@secret = TUMBLR_SECRET_KEY | |
@oauth_token = TUMBLR_OAUTH_TOKEN | |
@oauth_token_secret = TUMBLR_OAUTH_TOKEN_SECRET | |
# Sets the client that allows interfacing with Tumblr |
This file contains hidden or 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
.page-content-container | |
%h1.big blog | |
.padder100 | |
.metaPostsContainer | |
///////////////////////////////////////////////////////////////////////////// | |
// Pull each post out of @posts ///////////////////////////////////////////// | |
- @posts.each do |post| | |
// Set variables. ///////////////////////////////////// | |
- @type = post["type"] # the type of post |
This file contains hidden or 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
h3 { | |
font-family: "Helvetica-Neue", sans-serif; | |
font-size: 1.5em; | |
} | |
.section-container { | |
max-width: 1100px; | |
background-color: black; | |
margin: auto; | |
overflow: hidden; |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Responsive Divs</title> | |
<link rel="stylesheet" type="text/css" href="./example.css"> | |
</head> | |
<body> | |
<div class="section-container"> | |
<div class="section"> | |
<h3>container 1</h3> |
This file contains hidden or 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
on run {targetBuddyPhone, targetMessage} | |
tell application "Messages" | |
set targetService to 1st service whose service type = iMessage | |
set targetBuddy to buddy targetBuddyPhone of targetService | |
send targetMessage to targetBuddy | |
end tell | |
end run |
This file contains hidden or 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
on run {targetBuddyPhone, targetMessage} | |
tell application "System Events" | |
tell application "Messages" to activate | |
tell process "Messages" | |
click menu item "New Message" of menu "file" of menu bar 1 | |
set input to targetMessage as text | |
delay 1 | |
keystroke targetBuddyPhone | |
keystroke return | |
keystroke tab |
This file contains hidden or 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
int FRAME_RATE = 30; | |
int BPM = 80; | |
float FPB = FRAME_RATE * 60.0 / BPM; | |
float BPF = BPM / 60.0 / FRAME_RATE; | |
float beatCount = 0.0; | |
int nodeSize = 20; |
This file contains hidden or 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 React from 'react'; | |
interface OwnProps { | |
// add some properties. | |
} | |
interface OwnState { | |
// add some properties. | |
} |
This file contains hidden or 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
diff --git a/sdk/objc/components/audio/RTCAudioSessionConfiguration.m b/sdk/objc/components/audio/RTCAudioSessionConfiguration.m | |
index 39e9ac13ec..a11a0037cd 100644 | |
--- a/sdk/objc/components/audio/RTCAudioSessionConfiguration.m | |
+++ b/sdk/objc/components/audio/RTCAudioSessionConfiguration.m | |
@@ -65,15 +65,16 @@ static RTC_OBJC_TYPE(RTCAudioSessionConfiguration) *gWebRTCConfiguration = nil; | |
- (instancetype)init { | |
if (self = [super init]) { | |
+ AVAudioSession *session = [AVAudioSession sharedInstance]; | |
// Use a category which supports simultaneous recording and playback. |
This file contains hidden or 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
// 1. paste this section to start recording | |
let mediaRecorder; | |
let recordedBlobs = []; | |
function handleDataAvailable(event) { | |
console.log('handleDataAvailable', event); | |
if (event.data && event.data.size > 0) { | |
recordedBlobs.push(event.data); | |
} | |
} | |
let options = {mimeType: 'video/webm;codecs=vp9,opus'}; |
OlderNewer