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
Opera Preferences version 2.1 | |
; Do not edit this file while Opera is running | |
; This file is stored in UTF-8 encoding | |
[Version] | |
File Version=1 | |
[Info] | |
Description=Opera Standard Keyboard setup for UNIX | |
Author=Opera Software ASA |
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/zsh -x | |
cd | |
dotgitdir=(`locate -r "\/\.git$" | xargs`) | |
for i in ${dotgitdir} | |
do | |
cd ${i} | |
cd .. | |
git pull | |
done |
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 -x | |
cd /tmp | |
mkdir ncaqautocd | |
cd ncaqautocd/ | |
ls | grep -v -E '(.jpg|.jpeg|.png)$' | xargs trash | |
yes '' | abcde -1 -M -o flac |
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
#define swap(a,b) (a=a+b,b=a-b,a=a-b) | |
#include <stdio.h> | |
void printAB(int a,int b) | |
{ | |
printf("a:%d,b:%d\n",a,b); | |
} | |
int main() |
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
#include <vector> | |
#include <memory> | |
#include <type_traits> | |
using namespace std; | |
class Super | |
{ | |
public: | |
virtual ~Super(){}; | |
}; |
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/zsh | |
#photo_list=(`ls -d -b --color=never *.jpg`) | |
for old_photo in *.(jpg|png|mp4) | |
do | |
new_photo=`echo ${old_photo} | perl -pe "s/[-_.]//g"` | |
new_photo=`echo ${new_photo} | perl -pe "s/[ ]/_/g"` | |
new_photo=`echo ${new_photo} | perl -pe "s/^/IMG_/g"` | |
new_photo=`echo ${new_photo} | perl -pe "s/jpg/.jpg/g"` |
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
#!/sbin/sh | |
for i in DroidSans.ttf DroidSansMono.ttf DroidSerif-Regular.ttf DroidSerif-Italic.ttf MTLmr3m.ttf Roboto-Regular.ttf Roboto-Italic.ttf Roboto-Light.ttf Roboto-LightItalic.ttf | |
do | |
ln -sf Ricty-Regular.ttf $i | |
done | |
for i in DroidSans-Bold.ttf DroidSerif-Bold.ttf DroidSerif-BoldItalic.ttf Roboto-Bold.ttf Roboto-BoldItalic.ttf | |
do | |
ln -sf Ricty-Bold.ttf $i |
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 std.stdio; | |
pure int f(in int x,in int y) | |
{ | |
return x + y; | |
} | |
pure auto g(in int x) | |
{ | |
return (in int y) => f(x,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
class A | |
{ | |
this()const | |
{ | |
a_ = 0; | |
} | |
private | |
{ | |
int a_; |
OlderNewer