Skip to content

Instantly share code, notes, and snippets.

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

Andrey Snow andoriyu

🏠
Working from home
View GitHub Profile
using UnityEngine;
using System.Collections;
public class GlobalClass : MonoBehaviour {
private static string m_session = "";
public static string current_session
{
get { return m_session; }
set { m_session = value; }
/usr/local/lib/ruby19/gems/1.9/gems/activesupport-2.3.5/lib/active_support/core_ext/string/output_safety.rb:34:in `concat'
/usr/local/lib/ruby19/gems/1.9/gems/activesupport-2.3.5/lib/active_support/core_ext/string/output_safety.rb:34:in `concat_with_safety'
/usr/local/lib/ruby19/gems/1.9/gems/spree-0.10.1/vendor/extensions/theme_default/app/views/checkouts/_summary.html.erb:11:in `block in _run_erb_47usr47local47lib47ruby1947gems47146947gems47spree450461046147vendor47extensions47theme_default47app47views47checkouts47_summary46html46erb_locals_object_summary'
/usr/local/lib/ruby19/gems/1.9/gems/will_paginate-2.3.11/lib/will_paginate/finder.rb:168:in `block in method_missing_with_paginate'
/usr/local/lib/ruby19/gems/1.9/gems/activerecord-2.3.5/lib/active_record/associations/association_collection.rb:369:in `block in method_missing'
/usr/local/lib/ruby19/gems/1.9/gems/activerecord-2.3.5/lib/active_record/associations/association_proxy.rb:215:in `block in method_missing'
/usr/local/lib/ruby19/gems/1.9/gems/active
<update>
<status>200</status>
<players>
<player username="yyy">
<x_coordinate>1.964155</x_coordinate>
<y_coordinate>0.7986051</y_coordinate>
<z_coordunate>-9.4595</z_coordunate>
</player>
<players>
<player username="xxx">
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.6
- RUBY VERSION: 1.9.1 (2009-12-07 patchlevel 376) [i386-freebsd8]
- INSTALLATION DIRECTORY: /usr/local/lib/ruby19/gems/1.9
- RUBY EXECUTABLE: /usr/local/bin/ruby19
- EXECUTABLE DIRECTORY: /usr/local/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-freebsd-8
- GEM PATHS:
ruby_0% ls /usr/local/lib/ruby19/gems/1.9/gems/sinatra-0.9.6
AUTHORS CHANGES LICENSE README.rdoc Rakefile compat lib sinatra.gemspec test
ruby_0% ls /usr/local/lib/ruby19/gems/1.9/gems/sinatra-0.9.4
AUTHORS CHANGES LICENSE README.rdoc Rakefile compat lib sinatra.gemspec test
--------------------------------------------------------------
>>> World build started on Sat Mar 27 13:56:55 KRAT 2010
--------------------------------------------------------------
--------------------------------------------------------------
>>> Rebuilding the temporary build tree
--------------------------------------------------------------
rm -rf /usr/obj/usr/src/tmp
mkdir -p /usr/obj/usr/src/tmp/lib
mkdir -p /usr/obj/usr/src/tmp/usr
Andrew-Cherkashins-MacBook:~ andoriyu$ brew --config
HOMEBREW_VERSION: 0.6
HEAD: 0c53d2746e4eacb9fff95a3956e725f071edf42d
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /Users/andoriyu/.homebrew/Cellar
HOMEBREW_CACHE: /Users/andoriyu/Library/Caches/Homebrew
HOMEBREW_REPOSITORY: /Users/andoriyu/.homebrew
HOMEBREW_LIBRARY_PATH: /Users/andoriyu/.homebrew/Library/Homebrew
Hardware: dual-core 32-bit core
OS X: 10.6.3
@andoriyu
andoriyu / backup
Created April 6, 2010 03:52
Backup script
#!/bin/bash
METHOD=$1
# 0 - не делать
# 1 - делать те которые указаны в MYSQL_DATABASES
# 2 - бэкапить все
DO_MYSQL="1"
MYSQL_DATABASE=""
Что бы заставить zsp работать нужно добавить папку с ним в PATH (например так export PATH="/Users/koss/Projects/zsp/bin:$PATH") и сделать его исполняемым. Также надо создать папку ~/.zsp в которой будут лежать файлы проектов (пример ниже ↓).
Еще неплохо бы прописать такую строчку в .zshrc:
source "$HOME/.zsp/loader.zsh"
@andoriyu
andoriyu / gist:423630
Created June 3, 2010 08:16
anything2mp4 (iphone)
#!/usr/local/bin/bash
#Copyright (c) 2010 Andrey Cherkashin
#
#Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated #documentation files (the "Software"), to deal in the Software without restriction, including without
#limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
#the Software, and to permit persons to whom the Software is furnished to do so, subject to the following
#conditions:
#