Skip to content

Instantly share code, notes, and snippets.

/**
* Welcome to Pebble.js!
*
* This is where you write your app.
*/
var UI = require('ui');
var ajax = require('ajax');
var Vector2 = require('vector2');
@gklka
gklka / safari_custom_stylesheet.css
Last active November 20, 2024 08:57
safari_custom_stylesheet.css
#hcdb {
display: none;
}
div.hird_120 {
display: none;
}
body.terkep {
padding-top: 0 !important;
@gklka
gklka / hosts
Last active March 7, 2022 16:28
/etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
root@hitchcock:~# cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1)]/ utopic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://hu.archive.ubuntu.com/ubuntu/ utopic main restricted
deb-src http://hu.archive.ubuntu.com/ubuntu/ utopic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
@gklka
gklka / gist:ffb06bc8e5e2066bf07c
Last active August 29, 2015 14:10
Kiírja a FUTÁR API-kat használva a Báthory utca megállóhelyről induló legközelebbi járatokat
import urllib2
import json
import datetime
def find_start_time(datas, identifier):
if datas.has_key('data'):
if datas['data'].has_key('entry'):
if datas['data']['entry'].has_key('stopTimes'):
for stopTime in datas['data']['entry']['stopTimes']:
if stopTime['tripId'] == identifier:
Active Profiles:
Battery Power -1
AC Power -1*
Currently in use:
standbydelay 10800
standby 1
womp 0
halfdim 1
hibernatefile /var/vm/sleepimage
darkwakes 0
function get_the_relative_time($time = null){
if(is_null($time)) $time = get_the_time("U");
// $time_diff = date("U") - $time; // difference in second
/*
$second = 1;
$minute = 60;
$hour = $minute*60;
$day = $hour*24;
@gklka
gklka / gist:fe0d43ad27dda7e77eb3
Last active August 29, 2015 14:07
/etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
Hogy ne csak negatívat írjak, szerintem valahogy így kellett volna összerakni:
- iCloud acc-hoz iCloud prefsbe devices szekció, ahol egyenként lehetne látni milyen hw van feliratkozva milyen szolgáltatásra, ezeket iCloud jelszóval lehetne törölni is
Handoff:
- iCloud prefsben az eszköz alatt kapcsoló, hogy ide engedem továbbítani az SMS-eimet és ugyanígy kapcsoló, hogy ide továbbítom a hívásaimat
- ugyanez a lista elérhető lenne az üzenetek és a telefon beállítások közt is
- OS X-en iCloud prefsben és iMessage prefsben ugyanez
- Facetime-ot OS X-en átnevezném Phone-ra, prefsbe mehet ugyanez
Continuity:
[self.filterState setObject:[NSNumber numberWithBool:![[self.filterState objectForKey:[NSNumber numberWithInt:type]] boolValue]]
forKey:[NSNumber numberWithInt:type]];