Skip to content

Instantly share code, notes, and snippets.

View speedsticko's full-sized avatar

Kwan Lim speedsticko

View GitHub Profile
@speedsticko
speedsticko / index.html
Created October 16, 2012 00:45
I've used border tricks to get the effect.
<div class="slidingdoors">
<div class="slidetop"></div>
<div class="slideright"></div>
<div class="slidebottom"></div>
<div class="slideleft"></div>
<h3>follow me <a href="https://twitter.com/samarkandiy" target="_blank">@samarkandiy</a></h3>
</div>;l.///////////////////////////////////////'
@speedsticko
speedsticko / code
Created October 18, 2012 14:00
Auto-executing closure with anonymous function
(function(){
}());
let f x = x * x
f 2;;
#include <map>
#include <set>
#include <algorithm>
#include <iostream>
using namespace std;
//
// Lessons learned:
//
using System;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Net;
using System.Runtime.InteropServices;
using System.Security.Cryptography.X509Certificates;
using System.Security.Permissions;
using System.Security.Principal;
using System.Text;
http://isrishblog.wordpress.com/category/education/
@speedsticko
speedsticko / gist:4724510
Created February 6, 2013 18:05
dereferencing pointer to struct creates copy?
#include <iostream>
using namespace std;
typedef struct Something
{
int number;
} Something, *PSomething;
#define UPDATE_SOMETHING(something, n) (something).number = n;
#pragma once
#include <string>
class MySubObject {
public:
MySubObject(void);
~MySubObject(void);
std::string subName;
#include "MyObject.h"
#include <iostream>
using namespace std;
MySubObject::MySubObject(void)
{
cout<<"Constructor MySubObject"<<endl;
}
@speedsticko
speedsticko / MyObjectMain.cpp
Created February 7, 2013 19:08
How are objects constructed? objects, pointers, stack, heap?
#include "MyObject.h"
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
auto o1 = new MyObject();
MyObject o2;