Sign up Link
<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
<%= link_to "Sign up", new_registration_path(resource_name) %><br />
<% end -%>
#define _GNU_SOURCE 1 | |
#include <sched.h> // sched_setaffinity | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <limits.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <pthread.h> | |
#include <assert.h> | |
#include <sys/time.h> |
# config valid only for current version of Capistrano | |
lock "3.8.2" | |
set :application, "my_application" | |
set :repo_url, "git@github.com:kumagi/my_application" | |
set :branch, 'master' | |
set :deploy_to, "/opt/my_application" | |
set :format, :airbrussh |
Sign up Link
<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
<%= link_to "Sign up", new_registration_path(resource_name) %><br />
<% end -%>
#include <papi.h> | |
#include <stdio.h> | |
#include <iostream> | |
#include <vector> | |
int main() { | |
std::vector<int> Events = { | |
PAPI_BR_MSP, | |
PAPI_BR_NTK, | |
PAPI_TLB_IM |
#include <sys/socket.h> | |
#include <thread> | |
#include <iostream> | |
#include <unistd.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
int main() { | |
sockaddr_in addr; | |
addr.sin_family = AF_INET; | |
addr.sin_port = htons(12345); |
0 is empty! so first insert to 0 | |
1 is empty! so first insert to 1 | |
extend to 4 ! | |
rehash key:0 into slot:0 | |
rehash key:1 into slot:1 | |
2 is empty! so first insert to 2 | |
3 is empty! so first insert to 3 | |
extend to 8 ! | |
rehash key:0 into slot:0 | |
rehash key:1 into slot:1 |
(require 'cl) | |
(require 'compile) | |
(defun upward-find-file (filename &optional startdir) | |
(let | |
((dirname (expand-file-name | |
(if startdir startdir "."))) | |
(found nil) | |
(top nil)) | |
(while (not (or found top)) |
// Configuration: Obtain Slack web API token at https://api.slack.com/web | |
var API_TOKEN = PropertiesService.getScriptProperties().getProperty('slack_api_token'); | |
if (!API_TOKEN) { | |
throw 'You should set "slack_api_token" property from [File] > [Project properties] > [Script properties]'; | |
} | |
Logger.log("API_" + API_TOKEN); | |
var FOLDER_NAME = 'Slack Logs'; | |
/**** Do not edit below unless you know what you are doing ****/ | |
var COL_LOG_RAW_JSON = 1; | |
var COL_MAX = COL_LOG_RAW_JSON; |
#define _GNU_SOURCE 1 | |
#include <sched.h> // sched_setaffinity | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <limits.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <pthread.h> | |
#include <assert.h> | |
#include <sys/time.h> |
#include <fstream> | |
#include <chrono> | |
#include <iostream> | |
#include <vector> | |
#include <cmath> | |
#include <unistd.h> | |
int main(void) { | |
constexpr int size = 8192; | |
constexpr int tries = 1024; |