Skip to content

Instantly share code, notes, and snippets.

View kschingiz's full-sized avatar
🏠
Working from home

Shynggys Kengessov kschingiz

🏠
Working from home
View GitHub Profile
using UnityEngine;
using System.Collections.Generic;
using UnityEditor;
using System.Text.RegularExpressions;
using System.IO;
using System.Text;
public class DLLReimporter
{
[MenuItem( "Assets/DLL Reimporter", false, 100 )]
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class TextOutline : MonoBehaviour {
public float pixelSize = 1;
public Color outlineColor = Color.black;
public bool resolutionDependant = false;
public int doubleResolution = 1024;
using UnityEngine;
using UnityEditor;
public class FindMissingScriptsRecursively : EditorWindow
{
static int go_count = 0, components_count = 0, missing_count = 0;
[MenuItem("Window/FindMissingScriptsRecursively")]
public static void ShowWindow()
{
EditorWindow.GetWindow(typeof(FindMissingScriptsRecursively));
Shader "Custom/CurvedWorld" {
Properties {
// Diffuse texture
_MainTex ("Base (RGB)", 2D) = "white" {}
// Degree of curvature
_Curvature ("Curvature", Float) = 0.001
}
SubShader {
Tags { "RenderType"="Opaque" }
LOD 200
Meteor.startup(function(){
var namiConfig = {
host: "IP address",
port: 5038,
username: "username",
secret: "secret"
};
var nami = new (Meteor.npmRequire("nami").Nami)(namiConfig);
// nami.on('namiEvent', Meteor.bindEnvironment(function (event) {
// console.log(event);
@kschingiz
kschingiz / objdiffer.js
Created June 21, 2017 04:59
JS object differ
var deepDiffMapper = function() {
return {
VALUE_CREATED: 'created',
VALUE_UPDATED: 'updated',
VALUE_DELETED: 'deleted',
VALUE_UNCHANGED: 'unchanged',
map: function(obj1, obj2) {
if (this.isFunction(obj1) || this.isFunction(obj2)) {
throw 'Invalid argument. Function given, object expected.';
}
@kschingiz
kschingiz / meteor-mongo-oplog-ubuntu.bash
Last active June 27, 2017 11:51 — forked from LeCoupa/meteor-mongo-oplog-ubuntu.bash
Meteor: Set up Oplog Tailing on Ubuntu
# from here https://rocket.chat/docs/installation/manual-installation/ubuntu/
$ echo replSet=001-rs >> /etc/mongod.conf
$ service mongod restart
mongo
> rs.initiate()
# MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=001-rs
@kschingiz
kschingiz / README.md
Created June 7, 2018 09:33 — forked from rochoa/README.md
CARTO Node.js code test

CARTO Node.js code test

Introduction

At CARTO, among other things, we render maps, just check this example of Map with countries and USA states.

In order to limit the scope of the challenge, we are gonna use Mapnik and Node.js. Within this repository, we are providing all the pieces you need to reproduce that map. Well, all pieces except the map tile server.

An example of how to create an image with Mapnik:

@kschingiz
kschingiz / watches.sh
Created April 17, 2019 11:05
fix max user watches
echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
Npm.depends({
moment: "2.8.3",
package2: "version",
});