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
$ 1 0.000005 0.18682459574322224 63 5 50 | |
t 336 48 272 48 0 -1 0 -0.5721561993891591 1000 | |
t 336 48 400 48 0 -1 4.907122592815403 -0.5721561993828495 1000 | |
w 336 48 336 96 0 | |
w 272 64 272 96 0 | |
w 272 96 336 96 0 | |
r 272 32 272 -32 0 4990 | |
r 400 32 400 -32 0 4990 | |
w 272 -32 400 -32 0 | |
R 272 -32 208 -32 0 0 40 15 0 0 0.5 |
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
from itertools import cycle | |
for i in cycle((0, 1, 2,)): | |
print i | |
escape_value += 1 | |
if escape_value >= 10: | |
break |
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
set nocompatible | |
filetype plugin indent on | |
syntax on | |
set hidden "???? | |
"set number "line numbers | |
set wildmenu "completion | |
set ruler | |
set shiftwidth=4 |
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
set -g default-terminal "screen-256color" | |
set -g status-bg black | |
set -g status-fg white | |
set-window-option -g window-status-fg white | |
# active window title colors | |
set-window-option -g window-status-current-fg black | |
set-window-option -g window-status-current-bg white |
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
user=> (->> [1 3 5] cycle (take 1) (reduce +)) | |
1 | |
user=> (->> [1 3 5] cycle (take 10) (reduce +)) | |
28 | |
user=> (->> [1 3 5] cycle (take 100) (reduce +)) | |
298 | |
user=> (->> [1 3 5] cycle (take 1000) (reduce +)) | |
2998 | |
user=> (->> [1 3 5] cycle (take 10000) (reduce +)) | |
29998 |
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
import sublime_plugin | |
from time import time | |
class InsertEpochTimeCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
self.view.insert(edit, self.view.sel()[0].begin(), str(int(time()))) |
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
;; 'wrap' any function to print the arguments | |
;; with the intention of visualizing what happens | |
;; when you pass a function to reduce | |
;; first version | |
(defn wrap [f & args] | |
(println args) | |
(apply f args)) | |
(wrap + 4 5) |
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
Shader "Jars/PostEffect" | |
{ | |
HLSLINCLUDE | |
#include "../PostProcessing/Shaders/StdLib.hlsl" | |
TEXTURE2D_SAMPLER2D(_MainTex, sampler_MainTex); | |
float _Blend; | |
float4 Frag(VaryingsDefault i) : SV_Target |
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
vec2 poltocar( vec2 pol ) { | |
return vec2( pol.x * cos(pol.y), pol.x * sin(pol.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
// CMapChunk::Create, macOS build 12340 | |
do { | |
subchunks_ = *subchunks; | |
remainingDataBytes = remainingSubchunkBytes - 8; | |
currentChunkData_ = subchunks + 8; | |
if (*subchunks == 'MCNR') { | |
this->pMcnrData = currentChunkData_; | |
*(subchunks + 4) = 448; | |
} |