demo

Compiling without libc

南楼画角 提交于 2019-11-26 23:49:59
I want to compile my C-code without the (g)libc. How can I deactivate it and which functions depend on it? I tried -nostdlib but it doesn't help: The code is compilable and runs, but I can still find the name of the libc in the hexdump of my executable. ataylor If you compile your code with -nostdlib , you won't be able to call any C library functions (of course), but you also don't get the regular C bootstrap code. In particular, the real entry point of a program on Linux is not main() , but rather a function called _start() . The standard libraries normally provide a version of this that

Tools to support live coding as in Bret Victor's “Inventing on Principle” talk

天涯浪子 提交于 2019-11-26 23:47:13
问题 I've watched an already well known video where Bret Victor, former Apple UI designer shows amazing demos with immediate updates of running code after changing literally one symbol in source code. To make my question clear to those who haven't seen or don't have time to watch the video: I want to use a tool like that to write my own software. Is the tool he was demonstrating available, or are there other similar tools? It doesn't matter which languages/environments, I just want to have my code

Local Storage - HTML5 Demo with Code [closed]

南楼画角 提交于 2019-11-26 19:30:34
问题 I am trying to work with local storage with forms using html5. I am just unable to find a single working demo online. Can anyone find me a good demo and a tutorial that works. My browser is completely supported. Appreciate all the help. Thanks 回答1: Have a look at MDC - DOM Storage or W3C's Webstorage draft (ok, less demo and more description). But the API is not that huge. 回答2: Here's a jsfiddle demo (copy of the associated js code, uses of localStorage are called out in the comments) //Note

How do you create a transparent demo screen for an Android app?

那年仲夏 提交于 2019-11-26 12:37:11
I'm trying to create a semi-transparent demo screen that is launched only when a user first installs my application. Here's an example from the Pulse News app: Galaxy Nexus Nexus One Instead of a 'tap-to-dismiss' feature, I want the user to be able to swipe through a couple of such transparent demo pages. For my first attempt, I modified a sample from the ViewPagerIndicator library. I used semi-transparent PNGs in ImageViews inside each of the view pager's fragments. I then launched this as a 'demo activity' in the onCreate method of my 'main activity'. Problem: The 'main activity' could not

Compiling without libc

≡放荡痞女 提交于 2019-11-26 08:47:59
问题 I want to compile my C-code without the (g)libc. How can I deactivate it and which functions depend on it? I tried -nostdlib but it doesn\'t help: The code is compilable and runs, but I can still find the name of the libc in the hexdump of my executable. 回答1: If you compile your code with -nostdlib , you won't be able to call any C library functions (of course), but you also don't get the regular C bootstrap code. In particular, the real entry point of a program on Linux is not main() , but

单点登录一二点

独自空忆成欢 提交于 2019-11-26 06:52:47
刚开始做单点登录同事说用redis存session,不过感觉还是用cas 或 OAuth2 实现好一些. 之前看人家博客写的一个demo,感觉还不错,想用springboot重写一下,顺便熟悉下. https://segmentfault.com/a/1190000013467122 <OAuth2的模式 https://www.cnblogs.com/ywlaker/p/6113927.html#!comments <采用的demo https://github.com/deadzq/simple-sso1 <demo 来源: https://www.cnblogs.com/ukzq/p/11314590.html

How do you create a transparent demo screen for an Android app?

假装没事ソ 提交于 2019-11-26 03:01:12
问题 I\'m trying to create a semi-transparent demo screen that is launched only when a user first installs my application. Here\'s an example from the Pulse News app: Galaxy Nexus Nexus One Instead of a \'tap-to-dismiss\' feature, I want the user to be able to swipe through a couple of such transparent demo pages. For my first attempt, I modified a sample from the ViewPagerIndicator library. I used semi-transparent PNGs in ImageViews inside each of the view pager\'s fragments. I then launched this