This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23:44:04.261 [main] INFO o.t.world.biomes.BiomeManager - Restored biome Core:snow with short id 2 from save game. | |
23:44:04.261 [main] INFO o.t.world.biomes.BiomeManager - Restored biome Core:plains with short id 7 from save game. | |
23:44:04.302 [main] INFO o.t.e.prefab.internal.PrefabFormat - Attempting to deserialize prefab engine:clientInfo with inputs [/engine/assets/prefabs/player/clientInfo.prefab] | |
23:44:04.303 [main] INFO o.t.e.prefab.internal.PrefabFormat - Attempting to deserialize prefab Core:fuseLong with inputs [/Core/assets/prefabs/fuseLong.prefab] | |
23:44:04.303 [main] INFO o.t.e.prefab.internal.PrefabFormat - Attempting to deserialize prefab engine:iconItem with inputs [/engine/assets/prefabs/iconItem.prefab] | |
23:44:04.304 [main] INFO o.t.e.prefab.internal.PrefabFormat - Attempting to deserialize prefab engine:itemBase with inputs [/engine/assets/prefabs/itemBase.prefab] | |
23:44:04.305 [main] INFO o.t.e.prefab.internal.PrefabFormat - Attempting to deserialize prefab engine:physicalDamage with in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Run Windows o Linux, on Windows go to Device Management, open your wifi card (atheros 9287), so "Details" > "ID hardware". (I have windows in Italian, I do not know if English is really so named; With Linux I don't know lol) | |
2. Copy on paper (or take a photo) the characters XXXX --> "VEN_168C&DEV_XXXX". | |
3. Run OS X and take the file IO80211Family.kext from Hard Disk>System>Library>Extension (U need to enable "hidden files" from terminal; search how with google), copy it on the desk (and make it a backup copy). | |
4. Right button on it > Show package contents. | |
5. Go to "Contents>PlugIns>AirPortAtheros40.kext", open with "Show package contents". Now go to "Contents>Info.plist", open it with the TextEdit. | |
6. So look in it, and replace as I did: | |
My ID Hardware: ....VEN_168C&DEV_002E... (XXXX = 002E) | |
Our id : VEN | |
I replace the first <string>pci168c,XXXX</string> with my ID Hardware: <string>pci168c,2e</string> | |
Note: the 0 is not reported; the "E" becomes "e". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#On Debian 7.0 | |
#Install build essentials | |
sudo apt-get install build-essential | |
#Install dependencies | |
sudo apt-get install binutils libproj-dev gdal-bin | |
sudo apt-get install libgeos-dev | |
sudo apt-get install libexpat1 libexpat1-dev | |
sudo apt-get install pkg-config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//From here but switched to 3.3 http://stackoverflow.com/questions/19748147/sdl-ttf-draws-garbage | |
#include <GL/glew.h> | |
#include <SDL2/SDL.h> | |
#include <SDL2/SDL_opengl.h> | |
#include <SDL2/SDL_ttf.h> | |
#include <string> | |
#include <iostream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
def partition(lst, left, right, pivotIndex): | |
# print pivotIndex | |
pivotValue = lst[pivotIndex] | |
lst[pivotIndex], lst[right] = lst[right], lst[pivotIndex] | |
storeIndex = left |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
def cal_entropy(lst): | |
t = sum(lst) | |
result = 0 | |
for i in lst: | |
division = float(i)/float(t) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import Security | |
let serviceIdentifier = "com.company" | |
let accessGroup = "com.company.app" | |
let kSecClassValue = kSecClass as NSString | |
let kSecAttrAccountValue = kSecAttrAccount as NSString | |
let kSecValueDataValue = kSecValueData as NSString | |
let kSecClassGenericPasswordValue = kSecClassGenericPassword as NSString |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lat": -34.47999900541754, "type": "city/town", "lon": -57.84000247340134, "name": "Colonia del Sacramento", "country": "Uruguay"} | |
{"lat": -33.5439989373607, "type": "city/town", "lon": -56.90099656015872, "name": "Trinidad", "country": "Uruguay"} | |
{"lat": -33.1389990288435, "type": "city/town", "lon": -58.3039974719095, "name": "Fray Bentos", "country": "Uruguay"} | |
{"lat": -34.538004006675465, "type": "city/town", "lon": -56.28400149324307, "name": "Canelones", "country": "Uruguay"} | |
{"lat": -34.09900200521719, "type": "city/town", "lon": -56.21499844799416, "name": "Florida", "country": "Uruguay"} | |
{"lat": 9.26100006831723, "type": "city/town", "lon": 0.7890035737781318, "name": "Bassar", "country": "Togo"} | |
{"lat": 8.557002133057097, "type": "city/town", "lon": 0.9849964623313099, "name": "Sotouboua", "country": "Togo"} | |
{"lat": 33.399999002467325, "type": "city/town", "lon": 10.4166995575967, "name": "Medenine", "country": "Tunisia"} | |
{"lat": 33.689997034920566, "type": "city/town", "lon": 8.9710025379012, "nam |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/usr/bin/python | |
# -*- coding: utf-8 -*- | |
""" | |
geo_test_gen.py | |
~~~~~~~~~~ | |
Author: Taha Dogan Gunes | |
""" | |
import json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyplyn as p | |
first_pipe = p.Pipe(name="first") | |
first_pipe.add(p.LambdaFilter(lambda x: "hello" in x)) | |
first_pipe.add(p.LambdaExtension(lambda x: x.title())) | |
first_pipe.add(p.Writer("./test/output-1.txt")) | |
second_pipe = p.Pipe(name="second") | |
second_pipe.add(p.LambdaFilter(lambda x: "world" in x)) |