Skip to content

Instantly share code, notes, and snippets.

{
"id": "so140527/11",
"name": "Sales order #11 from 27.05.2014",
"customer_id": 587,
"bill_to": {
"country": "Romaina",
"country_code": "RO",
"zip": "RO2546",
"state": "Some State or null",
"city": "Budapeşt",
var cheat = function(){
var styles = {};
$('#box span').each(function(index){
if ($(this).attr('style') in styles){
styles[$(this).attr('style')]['count'] += 1;
}else{
styles[$(this).attr('style')] = {'count': 1, 'o': $(this)};
}
@g0ddest
g0ddest / gist:9c8652903797bd8b6942
Created November 12, 2014 20:52
Libreoffice remove all colontitules
sub RemoveStyles
oDoc = ThisComponent
oStyles = oDoc.getStyleFamilies
oPageStyles = oStyles.getByName("PageStyles")
oPageStyleNames() = oPageStyles.getElementNames()
For i = 0 to uBound(oPageStyleNames)
thisName = oPageStyleNames(i)
if InStr(thisName, "Converted") <> 0 then
oPageStyles.removeByName(thisName)
@g0ddest
g0ddest / LICENSE.txt
Created June 6, 2011 05:58 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@g0ddest
g0ddest / LICENSE.txt
Created June 6, 2011 05:58 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@g0ddest
g0ddest / gist:3948553
Created October 24, 2012 20:13
Фильтр для приднестровского социального форума /1
var names = 'NICK1,NICK2,NICK3';
names = $.map(names.split(','), function(n){ return n.trim(); });
$('.comment').each(function(){
if($.inArray(
$(this).find('.comment-headline-user-profile').text().trim(),
names
) != 0) ? $(this).empty();
});
package com.prisbank.app.a.api.model;
public class AndroidBuild {
public String BOARD = android.os.Build.BOARD;
public String BOOTLOADER = android.os.Build.BOOTLOADER;
public String BRAND = android.os.Build.BRAND;
public String DEVICE = android.os.Build.DEVICE;
public String DISPLAY = android.os.Build.DISPLAY;
public String FINGERPRINT = android.os.Build.FINGERPRINT;
public String HARDWARE = android.os.Build.HARDWARE;
package name.velikodniy.vitaliy.geo.realm.yandex.route;
import name.velikodniy.vitaliy.geo.dto.Point;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
#
# Wide-open CORS config for nginx
#
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
#
# Custom headers and headers various browsers *should* be OK with but aren't
#
@g0ddest
g0ddest / cmake
Last active August 13, 2016 05:33
cmake_minimum_required(VERSION 3.6)
project(cmr_fuse)
find_package(CURL)
find_library(JANSSON_LIBRARY NAMES jansson
PATHS /usr/lib /usr/local/lib /usr/include /usr/local/include )
set(JANSSON_LIBRARIES ${JANSSON_LIBRARY} )
set(JANSSON_INCLUDE_DIRS ${JANSSON_INCLUDE_DIR} )