Skip to content

Instantly share code, notes, and snippets.

@schacon
schacon / gist:1
Created July 15, 2008 18:17
the meaning of gist
This is gist.
There are many like it, but this one is mine.
It is my life.
I must master it as I must master my life.
Without me gist is useless.
Without gist, I am useless.
#include <iostream>
#include <cstring>
using namespace std;
struct st{
int god[10000];
int serial[10000];
string proizvodjac[10000];
string model[10000];
@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 -%>
struct tauto {
int sb;
char pro[30];
char mod[30];
int god;
} auto;
struct stack {
int sb[21];
char pro[21][30];
#include<iostream>
#include<cstdlib>
#include<cstring>
using namespace std;
struct Auto{
int serijski_br;
char proizvodac[35];
char model[35];
I would like to propose moving support for the PulseAudio sound server into Arch Linux proper. This would also be in preparation for the eventual arrival of Gnome 3, since it will be unlikely we can effectively maintain the needed GStreamer patch any more.
To that effect I have created a plan:
---
To provide PulseAudio in [extra]...
Move the following packages from [community] to [extra]:
- libasyncns
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>
@takeo
takeo / gist:14
Created July 17, 2008 20:27
the most beautiful code in the world
--- /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>
#include <iostream>
using namespace std;
#include "stog_pokazivaci.h"
//#include "stog_polje.h"
int kraj_rek;
bool print;
UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
if (orientation == UIInterfaceOrientationLandscapeRight || orientation == UIInterfaceOrientationLandscapeLeft ) {
NSLog(@"Landscape");
self.pageWidth = size.width;
self.pageHeight = size.height;
}
else {
NSLog(@"Portrait");
self.pageWidth = size.height;
self.pageHeight = size.width;