This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Now let's try compile and benchmark it: | |
$ icc -v | |
icc version 13.0.0 (gcc version 4.6.0 compatibility) | |
Let's try without AVX set (just up to SSE4.2): | |
$ icc -march=corei7 test.c -lm && time ./a.out | |
r=171828183.102 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Open folder in ForkLift.app from console | |
# Author: Adam Strzelecki nanoant.com | |
# | |
# Usage: | |
# fl [<folder>] | |
# | |
# Opens specified directory or current working directory in ForkLift.app | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- OpenInTerminal.applescript | |
-- ForkLift | |
-- Created by ONO | |
tell application "Terminal" | |
activate | |
set windowCount to (count of the windows) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml | |
index 59075ab..c2af1b1 100644 | |
--- a/app/views/projects/show.html.haml | |
+++ b/app/views/projects/show.html.haml | |
@@ -2,10 +2,16 @@ | |
.row | |
.col-md-9 | |
- = render "events/event_last_push", event: @last_push | |
- = render 'shared/event_filter' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# set -e | |
# | |
# Builds .dmg installer | |
# | |
# Copyright (C) 2013-2014 Adam Strzelecki | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
exec cmake -GNinja "$HOME/llvm" \ | |
-DCMAKE_AR=$HOME/osxcross/target/bin/x86_64-apple-darwin13-ar \ | |
-DCMAKE_C_COMPILER=$HOME/osxcross/target/bin/x86_64-apple-darwin13-clang \ | |
-DCMAKE_CXX_COMPILER=$HOME/osxcross/target/bin/x86_64-apple-darwin13-clang++ \ | |
-DLLVM_ENABLE_LIBCXX:BOOL=ON \ | |
-DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-apple-darwin13 \ | |
-DLLVM_TARGET_ARCH=x86_64 \ | |
-DCMAKE_CROSSCOMPILING:BOOL=ON \ | |
-DLLVM_TABLEGEN=/usr/bin/llvm-tblgen-3.6 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{.deadCodeElim: on.} | |
proc getValue(): int {.inline, noSideEffect.} = | |
debugEcho "got 1" | |
result = 1 | |
let x = getValue() | |
let y = getValue() | |
echo y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import macros | |
# macro dump(st: stmt): stmt = | |
# echo st.treeRepr | |
macro dump(ex: expr): expr = | |
echo ex.treeRepr | |
ex | |
proc test() {.dump.} = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Print list of large files in Git | |
# Copyright (c) 2015 Adam Strzelecki | |
# | |
# Installation: | |
# Place it somewhere in your path, then use with `git large-files' | |
# | |
import os, sys, re |
OlderNewer