Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <assert.h>
#include <emscripten.h>
#include <unistd.h>
int testImage(SDL_Surface* screen, const char* fileName) {
SDL_Surface *image = IMG_Load(fileName);
if (!image)
int plus_one(int i) {
return i + 1;
}
int main(void) {
for (int i = 0; i < 10; ++i) {
printf("%d\n", plus_one(i));
}
return 0;
}
(function() {
TS.registerModule("format", {
testing_with_generic_tokens: false,
theme_rx: /((?:#[A-Fa-f0-9]{6} {0,1}, {0,1}){7})(#[A-Fa-f0-9]{6})(\b)/g,
onStart: function() {
if (TS.boot_data.feature_at_here) {
b.push("here")
}
},
cleanMsg: function(e) {
<link rel="import" href="./bower_components/polymer/polymer.html">
<polymer-element name="my-marquee" noscript>
<template>
<style>
div {
position: absolute;
-webkit-animation: background-animation 3s ease 0s infinite alternate;
}
@-webkit-keyframes background-animation {
[Desktop Entry]
Type=Application
Name=Mikutter
GenericName=Twittter client
Icon=/home/tyage/apps/mikutter/core/skin/data/icon.png
Exec=/home/tyage/.rbenv/shims/ruby /home/tyage/apps/mikutter/mikutter.rb
Terminal=false
import "babel/polyfill";
import prominence from "prominence";
import fs from "fs";
(async () => {
let text = await prominence(fs).readFile("async-convert.js", "UTF-8")
console.log(text);
})();
"use strict";
var _this = this;
var timer = function (sec) {
return new Promise(function (done) {
setTimeout(function () {
done(sec);
console.log("done");
}, sec);
@tyage
tyage / Application
Last active August 29, 2015 14:15
学校から借りてるMBAの設定
$ ls /Applications
Adobe Google Chrome Canary.app QuickTime Player.app
Adobe Acrobat XI Pro Google Chrome.app Reminders.app
Adobe Creative Cloud Google Drive.app Safari.app
Aldebaran GoogleAppEngineLauncher.app Scratch 1.4
Android Studio.app GoogleJapaneseInput.localized SecureDownloadManager.app
App Store.app Growl.app Skype.app
Atom.app Gyazo GIF.app Slack.app
Automator.app Gyazo.app Steam.app
Blu-ray Player.app HTC Sync Manager.app Stickies.app
android-sdk gh little-cms python
ant ghc little-cms2 python3
aspcud git llvm34 qt
atk git-flow mcrypt rbenv
autoconf glib mecab rbenv-gem-rehash
automake gmp mecab-ipadic rbenv-gemset
binwalk gnutls mhash re2c
bison gobject-introspection mongodb readline
boost gringo mpfr reattach-to-user-namespace
boot2docker gtk+ mysql ruby-build