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
// console.log('OKEY'); | |
function getQR() { | |
var qr = document.getElementsByTagName("canvas")[0]; | |
return {connection: document.getElementsByTagName("canvas")[0] == null, qr: qr ? qr.toDataURL() : ""}; | |
} | |
/* | |
export async function loadAllEarlierMessages(id, done) { | |
const found = WAPI.getChat(id); |
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
<?php | |
class WordCountTest extends PHPUnit_Framework_TestCase | |
{ | |
public function testCountOneWord() | |
{ | |
$this->assertEquals(['word' => 1], wordCount('word')); | |
} | |
public function testCountOneOfEachWord() | |
{ |
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
BEGIN:VCALENDAR | |
PRODID:-//Google Inc//Google Calendar 70.9054//EN | |
VERSION:2.0 | |
CALSCALE:GREGORIAN | |
METHOD:PUBLISH | |
X-WR-CALNAME:Noter | |
X-WR-TIMEZONE:Europe/Istanbul | |
X-WR-CALDESC:noter app | |
BEGIN:VEVENT | |
DTSTART:20200325T120000Z |
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
// | |
// Localizable.swift | |
// AnimatedLivePaper | |
// | |
// Created by Burak on 4/11/19. | |
// Copyright © 2019 | |
// | |
import Foundation | |
import UIKit |
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 UIKit | |
import Foundation | |
import PasscodeLock | |
class PasscodeRepository: PasscodeRepositoryType { | |
private let passcodeKey = "passcode.lock.passcode" | |
var hasPasscode: Bool { |
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
'use strict'; | |
var IOTA; | |
const IOTA = require('iota.lib.js'); | |
var tx = "yourtx" | |
const iota = new IOTA({ | |
'host': 'http://iri4.iota.fm', | |
'port': 80 |
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
@php | |
$link = url('/'); | |
@endphp | |
@for($i = 1; $i <= count(\Illuminate\Support\Facades\Request::segments()); $i++) | |
<li class="breadcrumb-item"> | |
@if($i < count(\Illuminate\Support\Facades\Request::segments()) & $i > 0) <?php $link .= "/" . \Illuminate\Support\Facades\Request::segment($i); ?> | |
<a href="<?= $link ?>">{{\Illuminate\Support\Facades\Request::segment($i)}}</a> {!!'<i class="fa fa-angle-right"></i>'!!} @else {{\Illuminate\Support\Facades\Request::segment($i)}} @endif | |
</li> | |
@endfor |