Skip to content

Instantly share code, notes, and snippets.

View tarkanlar's full-sized avatar

Tarkan Anlar tarkanlar

View GitHub Profile

Google has an amazing free API endpoint for text completions ,

below are some examples of the completions I got and the python code to interact with the API

Star this gist if this was helpful to you. Enjoy text completions

user@linux:$ python3 google_text_completion.py
 > hackers are
hackers are watching you
@josemarimanio
josemarimanio / install_pyenv_mac_zsh.rst
Created May 13, 2020 12:13
Installing pyenv on macOS for Zsh using Homebrew
@auser
auser / app.js
Last active September 22, 2016 21:59
import React from 'react'
import { Provider } from 'react-redux'
import { AppRegistry } from 'react-native';
import App from './containers/App'
import {
configureStore
} from './redux/configureStore'
const {store, actions} = configureStore();
@cmcewen
cmcewen / upload.js
Created December 29, 2015 15:38
Upload image from React Native to Cloudinary
var CryptoJS = require('crypto-js');
function uploadImage(uri) {
let timestamp = (Date.now() / 1000 | 0).toString();
let api_key = 'your api key'
let api_secret = 'your api secret'
let cloud = 'your cloud name'
let hash_string = 'timestamp=' + timestamp + api_secret
let signature = CryptoJS.SHA1(hash_string).toString();
let upload_url = 'https://api.cloudinary.com/v1_1/' + cloud + '/image/upload'
@wookiecooking
wookiecooking / hosx.sh
Last active January 21, 2020 23:44
Simple Installation of the latest Brew, Cask, Git, Node.js, and atom editor.
#!/bin/bash
<<COMMENT
# Simple Installation of the latest Brew, Cask, Git, Node.js, and atom editor. #
@Author: Austin Turnage
@License: MIT
# Example Usage #
Download Method::
Download this file, and from the directory, run in terminal
@ericelliott
ericelliott / essential-javascript-links.md
Last active May 17, 2024 03:38
Essential JavaScript Links
@adamrneary
adamrneary / video-events-lamba-function.js
Created December 20, 2014 18:07
A simple function for Amazon Lambda
var Firebase = require('firebase');
var async = require('async');
// Extract data from the kinesis event
exports.handler = function(event, context) {
// This function abstracts the expected structure of any Kinesis payload,
// which is a base64-encoded string of a JSON object, passing the data to
// a private function.
function handlePayload(record, callback) {
@addyosmani
addyosmani / README.md
Last active April 2, 2024 20:18 — forked from 140bytes/LICENSE.txt
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version