Skip to content

Instantly share code, notes, and snippets.

#ifdef HAVE_WIDECHAR
if(key_code == KEY_CODE_YES) {
#endif
/*some code*/
#ifdef HAVE_WIDECHAR
}
#endif
$(document).ready(function(){
$("ymaps").eq(0).hide();
});
token tryId(std::string str)
{
token result ("INVALID", "");
int state = 0;
for(auto x : str)
{
switch(state)
{
case 0:

Keybase proof

I hereby claim:

  • I am thevar1able on github.
  • I am thevar1able (https://keybase.io/thevar1able) on keybase.
  • I have a public key whose fingerprint is 8FAC 0672 D62C 6E1A BEE8 DEB4 B381 57E0 DC12 7A3E

To claim this, I am signing this object:

#!/usr/bin/python
from gi.repository import GObject
import dbus
from dbus.mainloop.glib import DBusGMainLoop
import datetime
import time
import pylast
class TinyScrobbler():
token tryInt(std::string str)
{
token result("INVALID", "");
int state = 0;
for(auto x : str)
{
switch(state)
{
case 0:
token tryFloat(std::string str)
{
token result("INVALID", "");
int state = 0;
for(auto x : str)
{
switch(state)
{
case 0:
class expression
{
private:
static double OREXPR(std::vector<std::string> exp) {
std::vector<std::string>::iterator op;
if ((op = std::find(exp.begin(), exp.end(), "or")) != exp.end()) {
double first = ANDEXPR(std::vector <std::string>(exp.begin(), op));
double second = OREXPR(std::vector <std::string>(op + 1, exp.end()));
return first || second;
}
#include <functional>
#include <algorithm>
#include <iostream>
#include <utility>
#include <float.h>
#include <string>
#include <vector>
#include <cmath>
typedef struct {
#include <functional> // 1.1.7.28
#include <algorithm>
#include <iostream>
#include <utility>
#include <string>
#include <vector>
#include <cmath>
typedef struct {
int wheels, passengers, size, power;