This pen is a quick demo of the Glide Carousel & Semantic UI (with version 0.12.0 css)
A Pen by Jeff Wainwright on CodePen.
| /* eslint-disable */ | |
| //key | |
| //sd - self described | |
| /** | |
| * @authored by Kaybarax | |
| */ | |
| /** | |
| * sd _ Kaybarax |
| /* eslint-disable */ | |
| //key | |
| //sd - self described | |
| /** | |
| * @authored by Kaybarax | |
| */ | |
| import RN from "react-native"; | |
| import { check, request, RESULTS } from "react-native-permissions"; | |
| import { isBooleanTypeAndTrue, isEmptyArray, isEmptyString, isNullUndefined, isObject, stringifyObject } from "./util"; |
| const { createServer } = require('http'); | |
| createServer((req, res) => { | |
| res.writeHead(200, { | |
| Connection: 'Transfer-Encoding', | |
| 'Content-Type': 'text/html; charset=utf-8', | |
| 'Transfer-Encoding': 'chunked' | |
| }); | |
| res.write(` |
| const { createServer } = require('http'); | |
| createServer((req, res) => { | |
| res.writeHead(200, { | |
| Connection: 'Transfer-Encoding', | |
| 'Content-Type': 'text/html; charset=utf-8', | |
| 'Transfer-Encoding': 'chunked' | |
| }); | |
| res.write(` |
| // Post a BASE64 Encoded PNG Image to facebook | |
| function PostImageToFacebook(authToken) { | |
| var canvas = document.getElementById("c"); | |
| var imageData = canvas.toDataURL("image/png"); | |
| try { | |
| blob = dataURItoBlob(imageData); | |
| } catch (e) { | |
| console.log(e); | |
| } | |
| var fd = new FormData(); |
This pen is a quick demo of the Glide Carousel & Semantic UI (with version 0.12.0 css)
A Pen by Jeff Wainwright on CodePen.
| // Construct a table with table[i] as the length of the longest prefix of the substring 0..i | |
| function longestPrefix(str) { | |
| // create a table of size equal to the length of `str` | |
| // table[i] will store the prefix of the longest prefix of the substring str[0..i] | |
| var table = new Array(str.length); | |
| var maxPrefix = 0; | |
| // the longest prefix of the substring str[0] has length | |
| table[0] = 0; |
| var binarySearch = function(array, value) { | |
| var guess, | |
| min = 0, | |
| max = array.length - 1; | |
| while(min <= max){ | |
| guess = Math.floor((min + max) /2); | |
| if(array[guess] === value) | |
| return guess; | |
| else if(array[guess] < value) |