This file contains 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
/** | |
* Print Stylesheet fuer Deinewebsite.de | |
* @version 1.0 | |
* @lastmodified 16.06.2016 | |
*/ | |
@media print { | |
/* Inhaltsbreite setzen, Floats und Margins aufheben */ | |
/* Achtung: Die Klassen und IDs variieren von Theme zu Theme. Hier also eigene Klassen setzen */ |
This file contains 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
%Plug.Conn{ | |
adapter: {Plug.Adapters.Cowboy.Conn, :...}, | |
assigns: %{ | |
my_assigns: "here" | |
}, | |
before_send: [ | |
#Function<7.125546534/1 in Phoenix.Controller.fetch_flash/2>, | |
#Function<1.127904613/1 in Plug.Session.before_send/2>, | |
#Function<1.43511252/1 in Plug.Logger.call/2>, | |
#Function<0.70322810/1 in Phoenix.LiveReloader.before_send_inject_reloader/1> |
This file contains 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
%Plug.Conn{ | |
adapter: {Plug.Adapters.Cowboy.Conn, :...}, | |
assigns: %{ | |
my_assigns: "here" | |
}, | |
before_send: [ | |
#Function<7.125546534/1 in Phoenix.Controller.fetch_flash/2>, | |
#Function<1.127904613/1 in Plug.Session.before_send/2>, | |
#Function<1.43511252/1 in Plug.Logger.call/2>, | |
#Function<0.70322810/1 in Phoenix.LiveReloader.before_send_inject_reloader/1> |
This file contains 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
1. brew安装mysql | |
$ brew install mysql | |
2. 创建或修改/usr/local/etc/my.cnf | |
https://gist.github.com/sandyxu/6317492 | |
3. 初始化 init database | |
$ unset TMPDIR | |
$ mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp |
This file contains 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
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"myCell"]; | |
if (cell == nil) { | |
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"myCell"]; | |
cell.selectionStyle = UITableViewCellSelectionStyleNone; | |
} | |
cell.textLabel.text = self.justCourseNamesArray[indexPath.row]; |
This file contains 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
create this file in your /root folder | |
$ fleetctl load swapon.service | |
$ fleetctl start swapon.service | |
This will create swap file on all nodes of your CoreOS cluster without prior setup. | |
See also http://cloudinit.readthedocs.org/en/latest/topics/examples.html#adjust-mount-points-mounted |
This file contains 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
public class Application extends Controller { | |
public static void index() { | |
render(); | |
} | |
public static void uploadPicture(Picture picture) { | |
picture.save(); | |
index(); | |
} |
NewerOlder