See also, http://libraryofalexandria.io/cgo/
cgo has a lot of trap.
but Not "C" pkg also directory in $GOROOT/src. IDE's(vim) Goto command not works.
So, Here collect materials.
| #[macro_use] | |
| extern crate yew; | |
| extern crate failure; | |
| use failure::Error; | |
| use yew::prelude::*; | |
| use yew::format::Json; | |
| use yew::services::ConsoleService; | |
| use yew::services::websocket::{WebSocketService, WebSocketStatus, WebSocketTask}; |
See also, http://libraryofalexandria.io/cgo/
cgo has a lot of trap.
but Not "C" pkg also directory in $GOROOT/src. IDE's(vim) Goto command not works.
So, Here collect materials.
| #import <Foundation/Foundation.h> | |
| #import <Cocoa/Cocoa.h> | |
| #include "node.h" | |
| #include "v8_typed_array.h" | |
| #include "CoreFoundation/CoreFoundation.h" | |
| static int init_argc; | |
| static char **init_argv; | |
| @interface AppDelegate : NSObject <NSApplicationDelegate> |
| #In IDEA, go to Tools > Create Desktop Entry to create a launcher in /usr/share/applications. | |
| cp /usr/share/applications/jetbrains-idea.desktop ~/.local/share/applications/ | |
| #http://nufailm.blogspot.be/2012/05/custom-launcher-for-intellij-idea-in.html | |
| #http://stackoverflow.com/questions/14424254/intellij-launcher-doesnt-work-on-unity |
mitmproxy is an excellent console app written in Python.
It is easy to use on Linux and OS X.
Use brew install mitmproxy to install it on OS X.
| // Compiling from toplevel of built node.js repo on OSX: | |
| // CC -g -o issue5564 issue5564.cc -I deps/uv/include/ \ | |
| // -L out/Debug/ -luv -framework CoreFoundation -framework Carbon | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <sys/time.h> | |
| #include "uv.h" |
| # Add this line to your software sources | |
| deb http://debian.meebey.net/experimental/mono / | |
| sudo apt-get update | |
| # of course, apt-get remove mono-complete first... | |
| sudo apt-get install mono-complete | |
| # I installed monodevelop from apt just to get all the prereqs | |
| sudo apt-get install monodevelop |
| @import "mixins.less"; | |
| @import "variables.less"; | |
| .grid-no-gutter { | |
| /* Removes margin from Bootstrap Grid. This class goes at least one level above row-fluid. | |
| Works in Bootstrap 2. In Bootstrap 3, #grid has been removed. */ | |
| #grid > .fluid( percentage( 1 / @gridColumns ), 0 ); | |
| } |
| #include <chrono> | |
| #include <memory> | |
| #include <string> | |
| #include <atomic> | |
| #include <thread> | |
| #include <iostream> | |
| #include <v8.h> | |
| int main() | |
| { |
| package mojolly.io | |
| import org.jboss.netty.bootstrap.ClientBootstrap | |
| import org.jboss.netty.channel._ | |
| import socket.nio.NioClientSocketChannelFactory | |
| import java.util.concurrent.Executors | |
| import org.jboss.netty.handler.codec.http._ | |
| import collection.JavaConversions._ | |
| import websocketx._ | |
| import java.net.{InetSocketAddress, URI} |