Skip to content

Instantly share code, notes, and snippets.

@hyperupcall
hyperupcall / settings.jsonc
Last active March 17, 2026 09:13
VSCode config to disable popular extensions' annoyances (telemetry, notifications, welcome pages, etc.)
// I'm tired of extensions that automatically:
// - show welcome pages / walkthroughs
// - show release notes
// - send telemetry
// - recommend things
//
// This disables all of that stuff.
// If you have more config, leave a comment so I can add it!!
{

파이썬을 처음 배울때 경험했던 방법들

요약

일단 간략하게 정리하면 책으로는 파이썬 기본을 배웠고, 파이썬 공식 문서를 통해서 좀 더 고급, 또는 활용성이 높은 프로그래밍 방법들을 배웠어요. 그리고 순간 순간 미묘하게 궁금한 부분들은 구글링으로 해결했어요.

버전 주의사항

파이썬 2와 3은 코드가 호환이 안 되고 문법도 약간 달라요. 그래서 책들도 버전 2, 버전 3 기준 책들이 따로 있어요.(표지에 안 적혀 있으면 저자의 서문 등에 보면 대체로 나옴.) 버전 2를 공부하고 싶으면, 대부분 2.7 버전이 기준일 거고, 버전 3을 공부하고 싶으면 최근 안정화 버전인 3.6 을 추천할게요. 그렇지만 굳이 버전 2가 꼭 필요한 상황 (유지보수 일을 하는데 이전에 개발된 코드가 2로 개발되었다던지)이 아니면 버전 3를 추천할게요 (또 2로 개발된 코드도 2to3 같은 트렌스파일러로 생각보다 쉽게 변환이 가능해요.).

@Vikasg7
Vikasg7 / UseFulFunctions.vba
Last active June 16, 2022 12:35
ReadTextFile, GetFolder, ExcelToHtml, PathValidator, Wait, Dimensions, RunShellCmdInHidden, FileCount functions in Excel VBA
Function ReadTextFile(ByVal fPath As String)
' A reference to "Microsoft Scripting Runtime library" has to be made before using FileSystemObject.
Dim FSobj As New FileSystemObject
Dim textfile As TextStream
Set textfile = FSobj.GetFile(fPath).OpenAsTextStream(1, -2)
ReadTextFile = textfile.ReadAll
textfile.Close
@derwodaso
derwodaso / ScriptingDefineSymbolToggler.cs
Created March 14, 2017 10:34
Disable / Enable ScriptingDefineSymbolds from menu
/* To avoid performance issues caused by string constructions when logging stuff
* to the console, simply surround the code with the the following:
*
* #if DEBUG_LOGGING
* Debug.Log("my" + numer.ToString("0.00") " super" + " expensive " + " string building code");
* #endif
*
* When creating a non-debug build or testing the game for performance, simply disable
* the debug messages from the Unity menu (menu name can be simply changed below).
*/
@kinifi
kinifi / AutoSave.cs
Created November 3, 2015 19:28
Auto Save the current open Unity 3D level every 30 seconds
/* Created by Chris Figueroa - @Kinifi
* Create a script called AutoSave.cs
*/
using UnityEngine;
using UnityEditor;
using System.Collections;
public class AutoSave : EditorWindow {
@AngryAnt
AngryAnt / MoveComponentContext.cs
Last active July 5, 2017 05:44
Adds "Move to Top" and "Move to Bottom" items to the inspector context menu of components.
using UnityEngine;
using UnityEditor;
public class MoveComponentContext
{
enum Destination
{
Top,
Bottom
@JakubNei
JakubNei / DeferredSynchronizeInvoke.cs
Last active December 29, 2024 10:46
Implementation of ISynchronizeInvoke for Unity3D game engine. Can be used to invoke anything on main Unity thread. ISynchronizeInvoke is used extensively in .NET forms, it's is elegant and quite useful in Unity as well. I implemented it so i can use it with System.IO.FileSystemWatcher.SynchronizingObject.
/*
Implementation of ISynchronizeInvoke for Unity3D game engine.
Can be used to invoke anything on main Unity thread.
ISynchronizeInvoke is used extensively in .NET forms, it's is elegant and quite useful in Unity as well.
I implemented it so i can use it with System.IO.FileSystemWatcher.SynchronizingObject.
help from: http://www.codeproject.com/Articles/12082/A-DelegateQueue-Class
example usage: https://gist.github.com/aeroson/90bf21be3fdc4829e631
version: aeroson 2017-07-13 (author yyyy-MM-dd)
@sliekens
sliekens / TypeMemberLayout.xaml
Last active October 12, 2024 07:34
StyleCop Type Member Layout for Resharper 9
<?xml version="1.0" encoding="utf-16"?>
<Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns">
<TypePattern DisplayName="COM interfaces" Priority="2000">
<TypePattern.Match>
<And>
<Kind Is="Interface" />
<Or>
<HasAttribute Name="System.Runtime.InteropServices.InterfaceTypeAttribute" />
<HasAttribute Name="System.Runtime.InteropServices.ComImport" />
</Or>
@hiko9lock
hiko9lock / AimCamera.cs
Created February 12, 2013 04:05
[Unity 3D] Testing camera pan,zoom, orbit for using mouse button. Setting camera rarget after you have attached this camera script to camera object. ・Hold left mouse button orbit ・Hold middle mouse button pan ・Hold ALT with right mouse button zoom
using UnityEngine;
using System.Collections;
public class AimCamera : MonoBehaviour {
public Transform target;
Vector3 f0Dir= Vector3.zero;
Vector3 upVal= Vector3.zero;
float zoomDistance= 5;
float theta= 0.0F;
float fai= 0.0F;