This file contains hidden or 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
dirs = Dir.glob('**/Assets/Scripts') + Dir.glob('**/Assets/Tests') | |
files = [] | |
dirs.each do |d| | |
files.concat(Dir.glob( File.join(d, '**', '*.cs'))) | |
end | |
filesCount = files.length | |
linesCount = 0 |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8" ?> | |
<!-- | |
I. Overall | |
I.1 Each pattern can have <Match>....</Match> element. For the given type declaration, the pattern with the match, evaluated to 'true' with the largest weight, will be used | |
I.2 Each pattern consists of the sequence of <Entry>...</Entry> elements. Type member declarations are distributed between entries | |
I.3 If pattern has RemoveAllRegions="true" attribute, then all regions will be cleared prior to reordering. Otherwise, only auto-generated regions will be cleared | |
I.4 The contents of each entry is sorted by given keys (First key is primary, next key is secondary, etc). Then the declarations are grouped and en-regioned by given property |
This file contains hidden or 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
#!/usr/bin/env ruby | |
command = 'git branch -a' | |
unless ARGV[0].nil? | |
command += ' | grep ' + ARGV[0] | |
end | |
lines = IO.popen(command).readlines | |
if lines.count == 0 |
This file contains hidden or 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
[core] | |
autocrlf = false | |
preloadindex = true | |
fscache = true | |
editor = vim | |
ignorecase = false | |
[alias] | |
bclean = "!f() { git remote prune origin && git branch --merged develop | grep -v -e "develop" -e "master" | xargs -r git branch -d;}; f" | |
adc = !git lg -5 && git add -A :/ && git status && git commit | |
lcm = log -1 --pretty=%B |
This file contains hidden or 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
require 'json' | |
if ARGV.size < 1 | |
puts "Enter file name" | |
exit | |
end | |
json = JSON.parse File.open(ARGV[0], 'r').read | |
beautiful = JSON.pretty_generate json | |
File.open(ARGV[0], 'w').write(beautiful) |
This file contains hidden or 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; | |
using UnityEngine; | |
/// <summary> | |
/// Поворачивает объект Z-осью на камеру. Также можно указать, какая ось объекта будет смотреть вверх. | |
/// </summary> | |
public class FaceOnCamera : MonoBehaviour | |
{ | |
[SerializeField] private bool _faceOnEditorCamera; | |
[SerializeField] private Axis _axisUp = Axis.Y; |
This file contains hidden or 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
*paredit.txt* Paredit Last Change: 29 Dec 2013 | |
Paredit Mode for Vim *paredit* *slimv-paredit* | |
Version 0.9.12 | |
The paredit.vim plugin performs structured editing of s-expressions used in | |
the Lisp, Clojure, Scheme programming languages. It may come as part of Slimv | |
but it is also distributed separately as a standalone plugin. | |
|paredit-mode| Paredit mode |
This file contains hidden or 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
git tag -d 12345 | |
git push origin :refs/tags/12345 |
This file contains hidden or 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
{-# OPTIONS_GHC -Wall #-} | |
{-# TemplateHaskell #-} | |
module Main where | |
import Control.Lens (makeLenses, (.~), (^.)) | |
import Data.List.Split (chunksOf) | |
import Data.ByteString.Lazy (ByteString) | |
import qualified Data.ByteString.Lazy as LBS (writeFile, toStrict) |
This file contains hidden or 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
#!python | |
import os | |
import subprocess | |
package = "COM.YOUR.PACKAGE" | |
os.chdir(os.environ["HOME"] + "/Downloads") | |
def isApk(f): |
OlderNewer