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 | |
PROG_NAME=$0 | |
ACTION=$1 | |
usage() { | |
echo "Usage: $PROG_NAME {list|ping|optimal|conn|close|status}" | |
exit 1 | |
} |
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
// | |
// main.m | |
// | |
// Created by Dominik Pich on 10.02.13. | |
// Everybody is free to use this however they want! | |
// | |
#if TARGET_OS_IPHONE | |
#import <UIKit/UIKit.h> | |
#else | |
#import <Cocoa/Cocoa.h> |
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
tell application "System Events" | |
-- get current clipboard contents as a string | |
set CurrentClipboard to the clipboard as string | |
-- set the clipboad to your password | |
set the clipboard to "Y0urVPNPa$$w0rd" | |
-- start playing with the VPN | |
tell current location of network preferences | |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
#/usr/local/bin/python | |
import os,sys | |
from xml.etree import ElementTree | |
from PIL import Image | |
def tree_to_dict(tree): | |
d = {} | |
for index, item in enumerate(tree): | |
if item.tag == 'key': | |
if tree[index+1].tag == 'string': |
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
ACTION = build | |
AD_HOC_CODE_SIGNING_ALLOWED = NO | |
ALTERNATE_GROUP = staff | |
ALTERNATE_MODE = u+w,go-w,a+rX | |
ALTERNATE_OWNER = grantdavis | |
ALWAYS_SEARCH_USER_PATHS = NO | |
ALWAYS_USE_SEPARATE_HEADERMAPS = YES | |
APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer | |
APPLE_INTERNAL_DIR = /AppleInternal | |
APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation |
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
Shader "Custom/CelShadingForward" { | |
Properties { | |
_Color("Color", Color) = (1, 1, 1, 1) | |
_MainTex("Albedo (RGB)", 2D) = "white" {} | |
} | |
SubShader { | |
Tags { | |
"RenderType" = "Opaque" | |
} | |
LOD 200 |
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
Shader "Unlit/DissolveEffectShader" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_NoiseTex ("Texture", 2D) = "white" {} | |
[MaterialToggle] PixelSnap ("Pixel snap", Float) = 0 | |
_EdgeColour1 ("Edge colour 1", Color) = (1.0, 1.0, 1.0, 1.0) | |
_EdgeColour2 ("Edge colour 2", Color) = (1.0, 1.0, 1.0, 1.0) | |
_Level ("Dissolution level", Range (0.0, 1.0)) = 0.1 |
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
uint BitReverse(uint x) | |
{ | |
x = ((x & 0x55555555) << 1) | ((x & 0xaaaaaaaa) >> 1); | |
x = ((x & 0x33333333) << 2) | ((x & 0xcccccccc) >> 2); | |
x = ((x & 0x0f0f0f0f) << 4) | ((x & 0xf0f0f0f0) >> 4); | |
x = ((x & 0x00ff00ff) << 8) | ((x & 0xff00ff00) >> 8); | |
x = ((x & 0x0000ffff) << 16) | ((x & 0xffff0000) >> 16); | |
return x; | |
} |
OlderNewer