Skip to content

Instantly share code, notes, and snippets.

View maddox's full-sized avatar

Jon Maddox maddox

View GitHub Profile
http://pastie.caboo.se/pastes/create--- /Users/ioio/Downloads/KeyRemap4MacBook-6.99.0/files/prefpane/include/simultaneouskeypresses_vimode.xml 2010-11-12 18:21:47.000000000 +0100
+++ /Users/ioio/Downloads/KeyRemap4MacBook-6.9.69/files/prefpane/include/simultaneouskeypresses_vimode.xml 2010-11-14 20:43:08.000000000 +0100
@@ -8,7 +8,8 @@
<appendix>Push S and D keys simultaneously and keep them pressing.</appendix>
<appendix>Then you can use Vi style navigation by HJKL.</appendix>
<appendix>- HJKL to Left/Down/Up/Right</appendix>
- <sysctl vk_config="true">notsave.simultaneouskeypresses_vimode</sysctl>
+ <sysctl>notsave.simultaneouskeypresses_vimode</sysctl>
+ <vk_config>true</vk_config>
<autogen>--ShowStatusMessage-- Vi Mode</autogen>
@maddox
maddox / sick c0dez
Created July 15, 2008 18:56
undefined
<% fields_for @public_key do |f| -%>
<p>
<%= f.label :title %><br />
<%= f.text_field :title %><br /><br />
</p>
<p>
<%= f.label :key %><br />
<%= f.text_area :key %>
</p>
<% end -%>
#include <iostream>
#include <cstring>
using namespace std;
struct st{
int god[10000];
int serial[10000];
string proizvodjac[10000];
string model[10000];