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
cd "C:\Program Files\Blackmagic Design\DaVinci Resolve\" | |
$Env:QT_DEVICE_PIXEL_RATIO = 1 | |
$Env:QT_AUTO_SCREEN_SCALE_FACTOR = 1 | |
.\Resolve.exe |
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
wt -d %CD% |
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 bpy | |
import bmesh | |
obj=bpy.context.object | |
if obj.mode == 'EDIT': | |
bm=bmesh.from_edit_mesh(obj.data) | |
for v in bm.verts: | |
if v.select: | |
# Local | |
# print(v.co) |
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 Adder implements Function { | |
int call(int a, int b) => a + b; | |
} | |
class Incrementer implements Function { | |
int _amt; | |
Incrementer(this._amt); | |
int call(int a) => a + _amt; | |
} |
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 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Demo', | |
debugShowCheckedModeBanner: false, |
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 'package:flutter/material.dart'; | |
void main() => runApp(new MyApp()); | |
/// This Widget is the main application widget. | |
class MyApp extends StatelessWidget { | |
static const String _title = 'Flutter Code Sample'; | |
@override | |
Widget build(BuildContext context) { |
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
for /f %i in ('where gopls') do go version %i |
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
#!/bin/bash | |
set -e | |
sudo apt-get -y install libsecret-1-0 libsecret-1-dev libglib2.0-dev | |
sudo make --directory=/usr/share/doc/git/contrib/credential/libsecret | |
git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret |
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
package main | |
/* | |
#include <stdio.h> | |
#include <stdlib.h> | |
void print_hello(const char *name) { | |
printf("Hello........... %s!\n", name); | |
} | |
*/ | |
import "C" |
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
var nilSlice []string | |
if nilSlice == nil { | |
fmt.Printf("nilSlice is nil\n") | |
} else { | |
fmt.Printf("nilSlice is NOT nil\n") | |
} | |
var notNilSlice []string = []string{} |
NewerOlder