create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
| #!/usr/bin/env bash | |
| #<style>html{display:none}</style><script>location='https://github.com/GitHub30/gdrive.sh'</script> | |
| id=$1 | |
| if [ ! "$id" ] | |
| then | |
| cat << EOS | |
| Usage: | |
| curl gdrive.sh | bash -s 0B4y35FiV1wh7QWpuVlFROXlBTHc | |
| curl gdrive.sh | sh -s https://drive.google.com/open?id=0B7EVK8r0v71pZjFTYXZWM3FlRnM |
| import android.content.SharedPreferences | |
| /** | |
| * Simple extension to remove the need to call `SharedPreferences.edit()` and `SharedPreference.Editor.apply()` for | |
| * every preferences change. | |
| */ | |
| fun SharedPreferences.update(updateBlock: SharedPreferences.Editor.() -> Unit) { | |
| val editor = edit() | |
| updateBlock(editor) |
| #!/bin/bash | |
| if [ -z "$1" ]; then | |
| echo "waiting for the following arguments: username + max-page-number" | |
| exit 1 | |
| else | |
| name=$1 | |
| fi | |
| if [ -z "$2" ]; then |
| /* DO NOT EDIT THIS FILE - it is machine generated */ | |
| #include <opencv2/opencv.hpp> | |
| #include <algorithm> | |
| #include <string> | |
| #include <vector> | |
| #include <opencv2/core/core.hpp> | |
| #include <opencv2/imgproc/imgproc_c.h> | |
| #define APPNAME "Scanning" |
| flagScreenPos = projectionMatrix * modelViewMatrix * pos3dWSC; | |
| float sx = flagScreenPos.x/flagScreenPos.w; | |
| float sy = flagScreenPos.y/flagScreenPos.w; | |
| float lx = (1 + sx)/2.0 * view.bounds.size.width; | |
| float ly = (1 - sy)/2.0 * view.bounds.size.height; | |
| if ( !isnan(lx) && !isnan(ly) ){ | |
| dispatch_async(dispatch_get_global_queue(0, 0), ^{ |
| var setupShadow = function( scene, camera, renderer ) | |
| { | |
| // var shadowPass = new THREE.ShadowPass( scene, camera, this.materialDict, this.ground, this.backgroundGroup, this.ruler, new THREE.Vector2( window.innerWidth, window.innerHeight ), 2 ); | |
| // var renderPass1 = new THREE.RenderPass(scene, camera); | |
| // var renderPass2 = new THREE.RenderPass(scene, camera); | |
| // var composer = new THREE.EffectComposer( renderer ); | |
| // composer.addPass( shadowPass ); | |
| // composer.addPass( renderPass1 ); | |
| // composer.addPass( renderPass2 ); |
| // | |
| // LiveFrameCaptureViewController.swift | |
| // SCNKit2Video | |
| // | |
| // Created by Lacy Rhoades on 11/29/16 | |
| // Revised 7/19/17 | |
| // Copyright © 2017 Lacy Rhoades. All rights reserved. | |
| // | |
| import Foundation |