Skip to content

Instantly share code, notes, and snippets.

View AndriyKalashnykov's full-sized avatar
🎯
Focusing

Andriy Kalashnykov AndriyKalashnykov

🎯
Focusing
View GitHub Profile
@irmorteza
irmorteza / struct-sample.go
Created July 24, 2021 11:18
go sample: how to convert Struct to map or json and vice versa
package main
import (
"encoding/json"
"fmt"
)
type MyStruct struct {
Id string `json:"id"`
Name string `json:"name"`

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

@DinisCruz
DinisCruz / Version 1 (with static data).cs
Last active October 26, 2017 21:09
O2 Script - Send data to Google Analytics via get request (of Image)
//descriptions from http://www.lunametrics.com/blog/2011/10/04/utmgif-request-parameters/
var utmwv = "5.3.8"; // Tracking code version
var utms = "1"; // Session requests. Updates every time a __utm.gif request is made. Stops incrementing at 500 (max number of GIF requests per session).
var utmn = "1797201820"; // Unique ID generated for each GIF request to prevent caching of the GIF image
var utmhn = "teammentor-33-ci"; // Host name, which is a URL-encoded string
var utmcs = "ISO-8859-1"; // Language encoding for the browser. Some browsers don’t set this, in which case it is set to “-”
var utmsr = "1440x852"; // Screen resolution
var utmvp = "1440x751"; // Size of Viewing Pane
var utmsc = "32-bit"; // Screen color depth
var utmul = "en-us"; // Browser language
@brunoborges
brunoborges / module.xml
Created June 20, 2012 16:53
JBoss module for Spring
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="org.springframework.spring">
<resources>
<resource-root path="cglib-nodep-2.2.2.jar"/>
<resource-root path="aopalliance-1.0.0.jar"/>
<resource-root path="spring-aop-3.1.1.RELEASE.jar"/>
<resource-root path="spring-asm-3.1.1.RELEASE.jar"/>
<resource-root path="spring-beans-3.1.1.RELEASE.jar"/>
<resource-root path="spring-context-3.1.1.RELEASE.jar"/>
<resource-root path="spring-context-support-3.1.1.RELEASE.jar"/>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>SoundCloud OAuth 2 User Agent Authentication Flow Demo</title>
<script type="text/javascript" charset="utf-8" src="javascript/jquery-1.4.2.js"></script>
<script type="text/javascript" charset="utf-8">
$(function () {
var extractToken = function(hash) {