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
@echo off | |
REM This script will copy all CSV files of the given directory to another location | |
REM Then it moves files to another directory | |
xcopy C:\path\to\files\*.csv Z:\path\to\copied\files\ /y | |
move C:\path\to\files\*.csv C:\path\to\new\location\ /y |
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 | |
/** | |
* Convert an object into an array (by example json object) | |
* @param an object | |
* @return an array | |
*/ | |
function objectToArray($object) { | |
if(is_object($object)) { | |
$object = get_object_vars($object); |
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
# Automatically answer all prompts negatively not to stall | |
# the script on errors | |
option batch on | |
# Disable overwrite confirmations that conflict with the previous | |
option confirm off | |
# Connect using a password | |
# open user:password@example.com | |
# Connect |
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
Windows Registry Editor Version 5.00 | |
; Adapted from https://github.com/neilpa/cmd-colors-solarized/blob/master/solarized-dark.reg | |
; Registry file that maps the solarized palette to the 16 avaliable colors | |
; in a Windows command prompt. Note, hex values in the table are RGB but byte | |
; ordering of a DWORD is BGR, e.g. "ColorTable<##>"=dword:00<B><G><R> | |
; | |
; Solarized color table from http://ethanschoonover.com/solarized. | |
; |
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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class PlayerMovement : MonoBehaviour { | |
private CharacterController characterController; | |
private Animator animator; | |
private float moveSpeed; | |
private bool hasJumped; |
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
Text("My text") | |
.frame(minWidth: 0, maxWidth: .infinity, alignment: .leading) |
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
struct LoginView: View { | |
@State private var username: String = "" | |
@State private var password: String = "" | |
var body: some View { | |
GeometryReader { geometry in | |
VStack{ | |
Image("lock") | |
.resizable() |
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
struct ContentView: View { | |
var body: some View { | |
VStack{ | |
Image("lock") | |
.resizable() | |
.aspectRatio(contentMode: .fill) | |
.frame(width: 200.0, height: 200.0) | |
.cornerRadius(90.0) | |
Text("I am protected by a login page.") | |
} |
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
class CameraController: NSObject{ | |
var captureSession: AVCaptureSession? | |
var frontCamera: AVCaptureDevice? | |
var frontCameraInput: AVCaptureDeviceInput? | |
var previewLayer: AVCaptureVideoPreviewLayer? | |
enum CameraControllerError: Swift.Error { | |
case captureSessionAlreadyRunning | |
case captureSessionIsMissing | |
case inputsAreInvalid |
OlderNewer