Skip to content

Instantly share code, notes, and snippets.

class Knowledge < ActiveRecord::Base
has_one :knowledge_file, :dependent => :destroy
attr_accessible :problem, :solution, :knowledge_file_attributes
accepts_nested_attributes_for :knowledge_file
new_action.before do
if SystemSetting[:default_specifications]
SystemSetting[:default_specifications].value.split(',').each do |specname|
object.specifications.build({:name => specname, :value => ''})
end
end
end
[importer] Importing asset 'assets/bin/dds/button_rocket_a.dds'
[importer] Importing asset 'assets/bin/dds/card_level04.dds'
[importer] Importing asset 'assets/bin/dds/button_level01_x.dds'
[importer] Importing asset 'assets/bin/dds/button_outro_n.dds'
[importer] Importing asset 'assets/bin/dds/button_rope_a.dds'
[importer] Importing asset 'assets/bin/dds/button_level06_n.dds'
[importer] Importing asset 'assets/bin/dds/button_run_a.dds'
[importer] Importing asset 'assets/bin/dds/button_level02_x.dds'
[importer] Importing asset 'assets/bin/dds/button_laser_x.dds'
[importer] Importing asset 'assets/bin/dds/button_run_n.dds'
Processor Information:
Vendor: GenuineIntel
Speed: 1500 Mhz
2 logical processors
2 physical processors
HyperThreading: Unsupported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported
resource :device do
member do
get 'start_emulator/:emulator'
emd
end
@johnny2k
johnny2k / gist:fb7e43c5cfdc90bf3c77
Created September 12, 2014 16:48
Resources used for resigning attempts
https://coderwall.com/p/cea3fw
http://servercoredump.com/question/20268172/resign-ios-app-distribution-identity-developer-identity
http://stackoverflow.com/questions/15634188/resigning-an-ios-provisioning-profile
http://stackoverflow.com/questions/6181813/very-tricky-question-about-iphone-ipad-resigned-builds-behaviors
http://stackoverflow.com/questions/6896029/re-sign-ipa-iphone
@johnny2k
johnny2k / gist:834430b5392852e0a422
Created September 12, 2014 18:32
A snippet of how I'm using cucumber and the appium java client to run iOS tests. How do I extract the step definitions into a separate class?
package client.test;
import cucumber.api.Scenario;
import cucumber.api.java.After;
import cucumber.api.java.Before;
import cucumber.api.java.en.And;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import io.appium.java_client.AppiumDriver;
@johnny2k
johnny2k / gist:e6cab4123ffb5b47f206
Last active August 29, 2015 14:16
Hardware info
Processor Information:
Vendor: GenuineIntel
CPU Family: 0x6
CPU Model: 0x3c
CPU Stepping: 0x3
CPU Type: 0x0
Speed: 3101 Mhz
4 logical processors
4 physical processors
HyperThreading: Unsupported
➜ EvadeVR_Linux_3-8-15 ./EvadeVR_Linux_3-8-15.x86
Set current directory to /home/johnnyy/Games/EvadeVR_Linux_3-8-15
Found path: /home/johnnyy/Games/EvadeVR_Linux_3-8-15/EvadeVR_Linux_3-8-15.x86
Mono path[0] = '/home/johnnyy/Games/EvadeVR_Linux_3-8-15/EvadeVR_Linux_3-8-15_Data/Managed'
Mono path[1] = '/home/johnnyy/Games/EvadeVR_Linux_3-8-15/EvadeVR_Linux_3-8-15_Data/Mono'
Mono config path = '/home/johnnyy/Games/EvadeVR_Linux_3-8-15/EvadeVR_Linux_3-8-15_Data/Mono/etc'
xrlk: does anyone know how I would fix this problem with creating classes http://www.reddit.com/r/unrealengine/comments/2zabtf/game_mode_failing_to_compile/
xrlk: My C:/Users folder name is a blank character "" in case that's relevant
johnny2k_: Could create a new user on your system that has a name, a normal name without special characters, and then try again.
xrlk: it works on my new account